summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 89d8b1d960..ea1df1ac46 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -195,7 +195,7 @@ 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));
- severity = all_down ? LOG_NOTICE : LOG_INFO;
+ severity = (all_down && warn) ? LOG_NOTICE : LOG_INFO;
all_down = 0;
control_event_server_status(LOG_NOTICE,
"NAMESERVER_STATUS NS=%s STATUS=UP", ns);