From: bert hubert Date: Tue, 3 Feb 2015 09:17:13 +0000 (+0100) Subject: reinstate --loglevel=7 for access to DEBUG messages in recursor X-Git-Tag: rec-3.7.0-rc2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f48d7b657ec32517f8bfcada3bfe6353ca313314;p=pdns reinstate --loglevel=7 for access to DEBUG messages in recursor --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index c0569b01f..aa439795c 100644 --- a/pdns/pdns_recursor.cc +++ b/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);