aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-01-15 08:40:50 +0000
committerRoger Dingledine <arma@torproject.org>2007-01-15 08:40:50 +0000
commitcf7069fca48a4152c7f369d5ff2e01d7769e36aa (patch)
treef46d56272105b75d96b9540294b0179c23a5ac81
parentb955ddbee2d1a69c10c40b1dd2e505ca1406db60 (diff)
downloadtor-cf7069fca48a4152c7f369d5ff2e01d7769e36aa.tar
tor-cf7069fca48a4152c7f369d5ff2e01d7769e36aa.tar.gz
two more todo items, to make eventdns log messages less loud
svn:r9348
-rw-r--r--src/or/dns.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 789707535..a37e35550 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -193,6 +193,9 @@ evdns_log_cb(int warn, const char *msg)
} 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 @@ launch_resolve(edge_connection_t *exitconn, or_circuit_t *circ)
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);