diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-19 18:51:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-19 18:51:49 +0000 |
commit | a259af179b1ee8a01eecd4b8bc7dacfb733ab07e (patch) | |
tree | b9cb06a93fed798e0be48a6565f67a3e94aead45 | |
parent | 16f1d4cb729866bf51e34175aa64441c02df3c50 (diff) | |
download | tor-a259af179b1ee8a01eecd4b8bc7dacfb733ab07e.tar.gz tor-a259af179b1ee8a01eecd4b8bc7dacfb733ab07e.zip |
When we need to open a new origin circuit, log why.
svn:r17705
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 4a733bd125..d5ec19361a 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -404,8 +404,10 @@ circuit_handle_first_hop(origin_circuit_t *circ) * connection without dropping it immediately... */ if (!connection_good_enough_for_extend(n_conn, &firsthop->extend_info->addr, &msg, &should_launch)) { - /* XXXX021 log msg, maybe. */ - /* not currently connected */ + /* not currently connected in a useful way. */ + const char *name = firsthop->extend_info->nickname ? + firsthop->extend_info->nickname : fmt_addr(&firsthop->extend_info->addr); + log_info(LD_CIRC, "Next router %s on circuit is %s", safe_str(name), msg); circ->_base.n_hop = extend_info_dup(firsthop->extend_info); if (should_launch) { |