]> granicus.if.org Git - pdns/commitdiff
reinstate --loglevel=7 for access to DEBUG messages in recursor
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 3 Feb 2015 09:17:13 +0000 (10:17 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 3 Feb 2015 09:17:13 +0000 (10:17 +0100)
pdns/pdns_recursor.cc

index c0569b01f09246c3c6e709f82c3b83ba7f817afb..aa439795c123f81692a9db63d696dbd6fc371fa6 100644 (file)
@@ -2359,10 +2359,12 @@ int main(int argc, char **argv)
     }
 
     Logger::Urgency logUrgency = (Logger::Urgency)::arg().asNum("loglevel");
+
     if (logUrgency < Logger::Error)
       logUrgency = Logger::Error;
-    if(!g_quiet)
-      logUrgency = Logger::Info;
+    if(!g_quiet && logUrgency < Logger::Info) { // Logger::Info=6, Logger::Debug=7
+      logUrgency = Logger::Info;                // if you do --quiet=no, you need Info to also see the query log
+    }
     L.setLoglevel(logUrgency);
     L.toConsole(logUrgency);