summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-28 21:29:26 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-28 21:29:26 +0000
commit460a476efacd2032ff0a13a6bcb5c694d49f9f72 (patch)
treeeaee9635b3fc7bb4d4060c85b2d49ff4a05c729a /src/or/dns.c
parentd9f1f3533d059627266ddcdb0398b4b32c7158f2 (diff)
downloadtor-460a476efacd2032ff0a13a6bcb5c694d49f9f72.tar.gz
tor-460a476efacd2032ff0a13a6bcb5c694d49f9f72.zip
r11725@Kushana: nickm | 2006-12-28 14:44:56 -0500
Partial solution to 326: downgrade single-nameserver failures to INFO. svn:r9201
Diffstat (limited to 'src/or/dns.c')
-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 e7dbccb4b1..ca1d60c5bd 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -178,6 +178,12 @@ evdns_log_cb(int warn, const char *msg)
} else if (!strcmpstart(msg, "Search: ")) {
return;
}
+ if (!strcmpstart(msg, "Nameserver ") && strstr(msg, " has failed: ")) {
+ /* Don't warn about a single failed nameserver; we'll warn with 'all
+ * nameservers have failed' if we're completely out of nameservers;
+ * otherwise, the situation is tolerable. */
+ warn = 0;
+ }
log(warn?LOG_WARN:LOG_INFO, LD_EXIT, "eventdns: %s", msg);
}
#endif