]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Take into account q_quiet when determing loglevel and change a few 10396/head
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 12 May 2021 10:46:44 +0000 (12:46 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 12 May 2021 10:46:44 +0000 (12:46 +0200)
loglevels.

pdns/pdns_recursor.cc
pdns/syncres.cc

index f0d79cb682b73ff6ead25e08f316ceac046d8a2b..0a805b6c4bee898e3313230d6f4a3bc4e3172ff7 100644 (file)
@@ -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<<Logger::Warning<<endl;
   }
 
-  g_quiet=::arg().mustDo("quiet");
-
   /* this needs to be done before parseACLs(), which call broadcastFunction() */
   g_weDistributeQueries = ::arg().mustDo("pdns-distributes-queries");
   if(g_weDistributeQueries) {
@@ -5728,6 +5726,7 @@ int main(int argc, char **argv)
     g_recCache = std::unique_ptr<MemRecursorCache>(new MemRecursorCache(::arg().asNum("record-cache-shards")));
     g_negCache = std::unique_ptr<NegCache>(new NegCache(::arg().asNum("record-cache-shards")));
 
+    g_quiet=::arg().mustDo("quiet");
     Logger::Urgency logUrgency = (Logger::Urgency)::arg().asNum("loglevel");
 
     if (logUrgency < Logger::Error)
index 103bfa73af7ae05d4b8bd1b2b836942b0a7cdc4d..90bb1ffde50f7706dbb278427c68fa184eb5693a 100644 (file)
@@ -4425,7 +4425,7 @@ int SyncRes::getRootNS(struct timeval now, asyncresolve_t asyncCallback, unsigne
     g_log<<Logger::Notice<<"Refreshed . records"<<endl;
   }
   else
-    g_log<<Logger::Error<<"Failed to update . records, RCODE="<<res<<endl;
+    g_log<<Logger::Warning<<"Failed to update . records, RCODE="<<res<<endl;
 
   return res;
 }