diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-17 01:29:28 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-17 01:29:28 +0000 |
commit | ae92a91d96f1942a3607292304f02a4947f5202b (patch) | |
tree | 2cbd2ecbd2caaef7b1afab807117bdbe49b565ae /src/or/connection.c | |
parent | 03dcef4c78b029f7345c69f7f5d59338198bf2e5 (diff) | |
download | tor-ae92a91d96f1942a3607292304f02a4947f5202b.tar tor-ae92a91d96f1942a3607292304f02a4947f5202b.tar.gz |
more log uncluttering
svn:r5254
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 6875fe8f1..2e611ccc8 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -458,7 +458,13 @@ connection_expire_held_open(void) if (conn->hold_open_until_flushed) { tor_assert(conn->marked_for_close); if (now - conn->timestamp_lastwritten >= 15) { - log_fn(LOG_NOTICE,"Giving up on marked_for_close conn that's been flushing for 15s (fd %d, type %s, state %s).", + int severity; + if (conn->type == CONN_TYPE_EXIT || + (conn->type == CONN_TYPE_DIR && conn->purpose == DIR_PURPOSE_SERVER)) + severity = LOG_INFO; + else + severity = LOG_NOTICE; + log_fn(severity, "Giving up on marked_for_close conn that's been flushing for 15s (fd %d, type %s, state %s).", conn->s, conn_type_to_string(conn->type), conn_state_to_string(conn->type, conn->state)); conn->hold_open_until_flushed = 0; |