Permalink
Browse files

reinstate --loglevel=7 for access to DEBUG messages in recursor

  • Loading branch information...
1 parent b3d89d5 commit f48d7b657ec32517f8bfcada3bfe6353ca313314 @ahupowerdns ahupowerdns committed Feb 3, 2015
Showing with 4 additions and 2 deletions.
  1. +4 −2 pdns/pdns_recursor.cc
@@ -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);

0 comments on commit f48d7b6

Please sign in to comment.