From 21263982e436601c9a4ae538413a5e2869e92f52 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 9 Apr 2006 21:36:37 +0000 Subject: Don't yell loudly about failed internal/bridge connections. These are reachability testing and rendserv upload/downloads, and they have their own failure messages elsewhere. svn:r6343 --- src/or/circuituse.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/or/circuituse.c') diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 57cc538733..1d79e62cf7 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1136,6 +1136,7 @@ connection_ap_handshake_attach_circuit(connection_t *conn) { int retval; int conn_age; + int severity; tor_assert(conn); tor_assert(conn->type == CONN_TYPE_AP); @@ -1143,11 +1144,12 @@ connection_ap_handshake_attach_circuit(connection_t *conn) tor_assert(conn->socks_request); conn_age = time(NULL) - conn->timestamp_created; + severity = (!conn->addr && !conn->port) ? LOG_INFO : LOG_NOTICE; if (conn_age > get_options()->SocksTimeout) { - log_notice(LD_APP, - "Tried for %d seconds to get a connection to %s:%d. Giving up.", - conn_age, safe_str(conn->socks_request->address), - conn->socks_request->port); + log_fn(severity, LD_APP, + "Tried for %d seconds to get a connection to %s:%d. Giving up.", + conn_age, safe_str(conn->socks_request->address), + conn->socks_request->port); return -1; } -- cgit v1.2.3-54-g00ecf