Skip to content

Commit

Permalink
reinstate --loglevel=7 for access to DEBUG messages in recursor
Browse files Browse the repository at this point in the history
  • Loading branch information
ahupowerdns committed Feb 3, 2015
1 parent b3d89d5 commit f48d7b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pdns/pdns_recursor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f48d7b6

Please sign in to comment.