Commit 919f421c authored by Roger Dingledine's avatar Roger Dingledine
Browse files

get rid of the spurious "Freeing linked %s connection" complaints.

they happen whenever we fail to establish a connection.


svn:r11854
parent 17f3d280
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -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 "
    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));
    // tor_assert(!buf_datalen(conn->outbuf)); /*XXXX020 remove me.*/
  }

  if (!connection_is_listener(conn)) {