]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
alternate to #3579 as fix for #3387. lot shorter. 3599/head
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 19 Mar 2016 20:29:35 +0000 (21:29 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 19 Mar 2016 20:29:35 +0000 (21:29 +0100)
pdns/pdnsutil.cc

index db612c21128e88b01e2e6c09e28318bbbc109fb9..6102c537dc8dfcfa4369b7f12e0eb5c7a85364a3 100644 (file)
@@ -87,7 +87,7 @@ void loadMainConfig(const std::string& configdir)
   ::arg().set("module-dir","Default directory for modules")=PKGLIBDIR;
   ::arg().set("entropy-source", "If set, read entropy from this file")="/dev/urandom";
   ::arg().setSwitch("query-logging","Hint backends that queries should be logged")="no";
-  ::arg().set("loglevel","Amount of logging. Higher is more.")="0";
+  ::arg().set("loglevel","Amount of logging. Higher is more.")="3";
   ::arg().setSwitch("direct-dnskey","Fetch DNSKEY RRs from backend during DNSKEY synthesis")="no";
   ::arg().set("max-nsec3-iterations","Limit the number of NSEC3 hash iterations")="500"; // RFC5155 10.3
   ::arg().set("max-signature-cache-entries", "Maximum number of signatures cache entries")="";
@@ -95,7 +95,8 @@ void loadMainConfig(const std::string& configdir)
 
   L.toConsole(Logger::Error);   // so we print any errors
   BackendMakers().launch(::arg()["launch"]); // vrooooom!
-  L.toConsole((Logger::Urgency)(::arg().asNum("loglevel")));  
+  if(::arg().asNum("loglevel") >= 3) // so you can't kill our errors
+    L.toConsole((Logger::Urgency)::arg().asNum("loglevel"));  
 
   //cerr<<"Backend: "<<::arg()["launch"]<<", '" << ::arg()["gmysql-dbname"] <<"'" <<endl;