소스 검색

boots and suspenders, or whatever the idiom is

svn:r9365
Roger Dingledine 19 년 전
부모
커밋
8662f18102
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/dns.c

+ 1 - 1
src/or/dns.c

@@ -195,7 +195,7 @@ evdns_log_cb(int warn, const char *msg)
   } else if (!strcmpstart(msg, "Nameserver ") &&
   } else if (!strcmpstart(msg, "Nameserver ") &&
              (cp=strstr(msg, " is back up"))) {
              (cp=strstr(msg, " is back up"))) {
     char *ns = tor_strndup(msg+11, cp-(msg+11));
     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;
     all_down = 0;
     control_event_server_status(LOG_NOTICE,
     control_event_server_status(LOG_NOTICE,
                                 "NAMESERVER_STATUS NS=%s STATUS=UP", ns);
                                 "NAMESERVER_STATUS NS=%s STATUS=UP", ns);