]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
get rid of the spurious "Freeing linked %s connection" complaints.
authorRoger Dingledine <arma@torproject.org>
Wed, 10 Oct 2007 22:59:34 +0000 (22:59 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 10 Oct 2007 22:59:34 +0000 (22:59 +0000)
they happen whenever we fail to establish a connection.

svn:r11854

src/or/connection.c

index b3d298435edd3c8c69be06692acfeb1ee8b5d37f..aeccb496678095e8e1daf38393401bfc5f8d0195 100644 (file)
@@ -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)) {