[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r9365: boots and suspenders, or whatever the idiom is (tor/trunk/src/or)



Author: arma
Date: 2007-01-16 19:14:43 -0500 (Tue, 16 Jan 2007)
New Revision: 9365

Modified:
   tor/trunk/src/or/dns.c
Log:
boots and suspenders, or whatever the idiom is


Modified: tor/trunk/src/or/dns.c
===================================================================
--- tor/trunk/src/or/dns.c	2007-01-16 17:39:08 UTC (rev 9364)
+++ tor/trunk/src/or/dns.c	2007-01-17 00:14:43 UTC (rev 9365)
@@ -195,7 +195,7 @@
   } 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);