]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add some logging and comments.
authorLinus Nordberg <linus@nordberg.se>
Thu, 24 Nov 2011 16:40:10 +0000 (17:40 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Nov 2011 16:55:44 +0000 (11:55 -0500)
src/or/circuitbuild.c
src/or/connection.c
src/or/directory.c

index b04bd10120ae13715eb315c0d64705dec1157add..1cfeb030d37f9fe3a1bd75c9deba9d2ccdc3c709 100644 (file)
@@ -5179,8 +5179,8 @@ learned_bridge_descriptor(routerinfo_t *ri, int from_cache)
       rewrite_node_address_for_bridge(bridge, node);
       add_an_entry_guard(node, 1, 1);
 
-      log_notice(LD_DIR, "new bridge descriptor '%s' (%s)", ri->nickname,
-                 from_cache ? "cached" : "fresh");
+      log_notice(LD_DIR, "new bridge descriptor '%s' (%s): %s", ri->nickname,
+                 from_cache ? "cached" : "fresh", router_describe(ri));
       /* set entry->made_contact so if it goes down we don't drop it from
        * our entry node list */
       entry_guard_register_connect_status(ri->cache_info.identity_digest,
index 897b0c9dfc49e0823716fd19d430eaf47a2496f1..af8663eae85b0baacdd76cd32938f1555cdabc23 100644 (file)
@@ -1935,6 +1935,7 @@ retry_all_listeners(smartlist_t *replaced_conns,
 
   smartlist_free(listeners);
 
+  /* XXXprop186 should take all advertised ports into account */
   if (old_or_port != router_get_advertised_or_port(options) ||
       old_dir_port != router_get_advertised_dir_port(options, 0)) {
     /* Our chosen ORPort or DirPort is not what it used to be: the
index a9ce483e34e1ff7d92fb5a7c6a6312348c8cf1a8..43bef5ccc06ad99fe7fda371618e8e733a4d5818 100644 (file)
@@ -1619,9 +1619,11 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
   if (!reason) reason = tor_strdup("[no reason given]");
 
   log_debug(LD_DIR,
-            "Received response from directory server '%s:%d': %d %s",
+            "Received response from directory server '%s:%d': %d %s "
+            "(purpose: %d)",
             conn->_base.address, conn->_base.port, status_code,
-            escaped(reason));
+            escaped(reason),
+            conn->_base.purpose);
 
   /* now check if it's got any hints for us about our IP address. */
   if (conn->dirconn_direct) {