[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17705: {tor} When we need to open a new origin circuit, log why. (tor/trunk/src/or)
Author: nickm
Date: 2008-12-19 13:51:49 -0500 (Fri, 19 Dec 2008)
New Revision: 17705
Modified:
tor/trunk/src/or/circuitbuild.c
Log:
When we need to open a new origin circuit, log why.
Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c 2008-12-19 18:51:44 UTC (rev 17704)
+++ tor/trunk/src/or/circuitbuild.c 2008-12-19 18:51:49 UTC (rev 17705)
@@ -404,8 +404,10 @@
* 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) {