summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-10-10 22:59:34 +0000
committerRoger Dingledine <arma@torproject.org>2007-10-10 22:59:34 +0000
commit919f421c6c75c1fc919365d5b91e3a5c888112aa (patch)
treeb5c4b115b15088f1408ffecf4b19a49b01459dd0
parent17f3d2807d23937d5ce9f2bff2fd74b7ab6aee90 (diff)
downloadtor-919f421c6c75c1fc919365d5b91e3a5c888112aa.tar.gz
tor-919f421c6c75c1fc919365d5b91e3a5c888112aa.zip
get rid of the spurious "Freeing linked %s connection" complaints.
they happen whenever we fail to establish a connection. svn:r11854
-rw-r--r--src/or/connection.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index b3d298435e..aeccb49667 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -283,14 +283,11 @@ _connection_free(connection_t *conn)
}
if (conn->linked) {
- int severity = buf_datalen(conn->inbuf)+buf_datalen(conn->outbuf)
- ? LOG_NOTICE : LOG_INFO;
- log_fn(severity, LD_GENERAL, "Freeing linked %s connection [%s] with %d "
- "bytes on inbuf, %d on outbuf.",
- conn_type_to_string(conn->type),
- conn_state_to_string(conn->type, conn->state),
- (int)buf_datalen(conn->inbuf), (int)buf_datalen(conn->outbuf));
- // tor_assert(!buf_datalen(conn->outbuf)); /*XXXX020 remove me.*/
+ log_info(LD_GENERAL, "Freeing linked %s connection [%s] with %d "
+ "bytes on inbuf, %d on outbuf.",
+ conn_type_to_string(conn->type),
+ conn_state_to_string(conn->type, conn->state),
+ (int)buf_datalen(conn->inbuf), (int)buf_datalen(conn->outbuf));
}
if (!connection_is_listener(conn)) {