[or-cvs] r9348: two more todo items, to make eventdns log messages less loud (tor/trunk/src/or)

arma at seul.org arma at seul.org
Mon Jan 15 08:40:58 UTC 2007


Author: arma
Date: 2007-01-15 03:40:50 -0500 (Mon, 15 Jan 2007)
New Revision: 9348

Modified:
   tor/trunk/src/or/dns.c
Log:
two more todo items, to make eventdns log messages less loud


Modified: tor/trunk/src/or/dns.c
===================================================================
--- tor/trunk/src/or/dns.c	2007-01-14 11:33:27 UTC (rev 9347)
+++ tor/trunk/src/or/dns.c	2007-01-15 08:40:50 UTC (rev 9348)
@@ -193,6 +193,9 @@
   } else if (!strcmpstart(msg, "Nameserver ") &&
              (cp=strstr(msg, " is back up"))) {
     char *ns = tor_strndup(msg+11, cp-(msg+11));
+    /* XXX012 we should set warn=0 if some nameservers were
+     * already up -- so we only shout when we actually change
+     * a meaningful state. */
     control_event_server_status(LOG_NOTICE,
                                 "NAMESERVER_STATUS NS=%s STATUS=UP", ns);
     tor_free(ns);
@@ -1686,6 +1689,9 @@
   if (r) {
     log_warn(LD_EXIT, "eventdns rejected address %s: error %d.",
              escaped_safe_str(addr), r);
+    /* XXX012 the above warning triggers sometimes on my exit
+     * node, with "error 1". Is there anything the user can do to
+     * resolve this? -RD */
     if (exitconn->_base.purpose == EXIT_PURPOSE_RESOLVE) {
       if (evdns_err_is_transient(r))
         send_resolved_cell(exitconn, circ, RESOLVED_TYPE_ERROR_TRANSIENT);



More information about the tor-commits mailing list