]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
another minor patch to add to 0.2.1.x
authorRoger Dingledine <arma@mit.edu>
Tue, 30 Jun 2009 14:14:15 +0000 (10:14 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 30 Jun 2009 14:21:30 +0000 (10:21 -0400)
  o Minor features:
    - If we're a relay and we change our IP address, be more verbose
      about the reason that made us change. Should help track down
      further bugs for relays on dynamic IP addresses.

src/or/router.c

index 658c567db14a199e42b614955d48dd8692943a78..93afe4fad51960505de8ddd61d8ff84089e8abf1 100644 (file)
@@ -1509,8 +1509,8 @@ log_addr_has_changed(int severity, uint32_t prev, uint32_t cur,
            addrbuf_prev, addrbuf_cur, source);
   else
     log_notice(LD_GENERAL,
-             "Guessed our IP address as %s.",
-             addrbuf_cur);
+             "Guessed our IP address as %s (source: %s).",
+             addrbuf_cur, source);
 }
 
 /** Check whether our own address as defined by the Address configuration
@@ -1533,7 +1533,7 @@ check_descriptor_ipaddress_changed(time_t now)
   }
 
   if (prev != cur) {
-    log_addr_has_changed(LOG_INFO, prev, cur, "resolve");
+    log_addr_has_changed(LOG_NOTICE, prev, cur, "resolve");
     ip_address_changed(0);
   }
 }