[or-cvs] r11854: get rid of the spurious "Freeing linked %s connection" compl (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Wed Oct 10 22:59:34 UTC 2007
Author: arma
Date: 2007-10-10 18:59:34 -0400 (Wed, 10 Oct 2007)
New Revision: 11854
Modified:
tor/trunk/src/or/connection.c
Log:
get rid of the spurious "Freeing linked %s connection" complaints.
they happen whenever we fail to establish a connection.
Modified: tor/trunk/src/or/connection.c
===================================================================
--- tor/trunk/src/or/connection.c 2007-10-10 20:29:52 UTC (rev 11853)
+++ tor/trunk/src/or/connection.c 2007-10-10 22:59:34 UTC (rev 11854)
@@ -283,14 +283,11 @@
}
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)) {
More information about the tor-commits
mailing list