]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
When we need to open a new origin circuit, log why.
authorNick Mathewson <nickm@torproject.org>
Fri, 19 Dec 2008 18:51:49 +0000 (18:51 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 19 Dec 2008 18:51:49 +0000 (18:51 +0000)
svn:r17705

src/or/circuitbuild.c

index 4a733bd1251b6bc44e7cba8da0172928f4df5623..d5ec19361a1c7f4ca083b18838aa40b72a2adf9d 100644 (file)
@@ -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) {