summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-09 11:34:00 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-09 11:34:00 -0400
commita7904543689917d0087ea47ad3d3c1631cdd2bde (patch)
treeed130af799aca0801b55893687463cff98d6587e /src/or/main.c
parent2f73525883373df17a7e11a8feae28f7558fe62e (diff)
downloadtor-a7904543689917d0087ea47ad3d3c1631cdd2bde.tar.gz
tor-a7904543689917d0087ea47ad3d3c1631cdd2bde.zip
Demote "we stalled too much while trying to write" message to INFO
Resolves ticket 5286.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 86f3437502..c6619fe7a4 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -919,16 +919,7 @@ conn_close_if_marked(int i)
return 0;
}
if (connection_wants_to_flush(conn)) {
- int severity;
- if (conn->type == CONN_TYPE_EXIT ||
- (conn->type == CONN_TYPE_OR && server_mode(get_options())) ||
- (conn->type == CONN_TYPE_DIR && conn->purpose == DIR_PURPOSE_SERVER))
- severity = LOG_INFO;
- else
- severity = LOG_NOTICE;
- /* XXXX Maybe allow this to happen a certain amount per hour; it usually
- * is meaningless. */
- log_fn(severity, LD_NET, "We stalled too much while trying to write %d "
+ log_fn(LOG_INFO, LD_NET, "We stalled too much while trying to write %d "
"bytes to address %s. If this happens a lot, either "
"something is wrong with your network connection, or "
"something is wrong with theirs. "