From cf02f990a7fb9398aa4b13373c7ae35f7d2d47e3 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. --- 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 f0d79cb682..0a805b6c4b 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -4001,7 +4001,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 @@ -4653,8 +4653,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 103bfa73af..90bb1ffde5 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -4425,7 +4425,7 @@ int SyncRes::getRootNS(struct timeval now, asyncresolve_t asyncCallback, unsigne g_log<