From 183a632caa127eb69a2e340b57aa70bb1d13d3ab Mon Sep 17 00:00:00 2001 From: Otto Date: Wed, 12 May 2021 12:46:44 +0200 Subject: [PATCH] Take into account q_quiet when determing loglevel and change a few loglevels. (cherry picked from commit cf02f990a7fb9398aa4b13373c7ae35f7d2d47e3) --- pdns/pdns_recursor.cc | 5 ++--- pdns/syncres.cc | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index a31c47d413..2c4f2f148f 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -4004,7 +4004,7 @@ static void handleRCC(int fd, FDMultiplexer::funcparam_t& var) RecursorControlParser rcp; RecursorControlParser::func_t* command; - g_log << Logger::Notice << "Received rec_control command '" << msg << "' from control socket" << endl; + g_log << Logger::Info << "Received rec_control command '" << msg << "' from control socket" << endl; auto answer = rcp.getAnswer(fd, msg, &command); // If we are inside a chroot, we need to strip @@ -4666,8 +4666,6 @@ static int serviceMain(int argc, char*argv[]) g_log<(new MemRecursorCache(::arg().asNum("record-cache-shards"))); g_negCache = std::unique_ptr(new NegCache(::arg().asNum("record-cache-shards"))); + g_quiet=::arg().mustDo("quiet"); Logger::Urgency logUrgency = (Logger::Urgency)::arg().asNum("loglevel"); if (logUrgency < Logger::Error) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 8cfed6f1fa..dc8e9d22db 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -4421,7 +4421,7 @@ int SyncRes::getRootNS(struct timeval now, asyncresolve_t asyncCallback, unsigne g_log<