From: bert hubert Date: Tue, 20 Jan 2015 20:01:32 +0000 (+0100) Subject: retune loglevels for quiet=no query logging but also make sure we print those lines... X-Git-Tag: rec-3.7.0-rc1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d738f00f821b42e52a0033df155db9cf8231fdca;p=thirdparty%2Fpdns.git retune loglevels for quiet=no query logging but also make sure we print those lines with quiet=no --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index f1a9c16bb1..8024e92535 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -945,7 +945,7 @@ string* doProcessUDPQuestion(const std::string& question, const ComboAddress& fr uint32_t age; if(!SyncRes::s_nopacketcache && t_packetCache->getResponsePacket(question, g_now.tv_sec, &response, &age)) { if(!g_quiet) - L<push_back("packetcached"); g_stats.packetCacheHits++; @@ -2334,6 +2334,8 @@ 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; L.setLoglevel(logUrgency); L.toConsole(logUrgency);