]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Log verbose messages to syslog at 'debug' level, not 'info'
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 1 Jun 2022 14:29:40 +0000 (16:29 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 1 Jun 2022 14:29:40 +0000 (16:29 +0200)
pdns/dolog.hh

index 638db32aa9ea2a8344596c52331007fdfed0c8b6..bb554ad470b32e2c380c82b61b9095190b56bb05 100644 (file)
@@ -116,8 +116,13 @@ void genlog(int level, const char* s, Args... args)
   std::cout<<output<<std::endl;
 }
 
+template<typename... Args>
+void verboselog(const char* s, Args... args)
+{
+  genlog(LOG_DEBUG, s, args...);
+}
 
-#define vinfolog if(g_verbose)infolog
+#define vinfolog if (g_verbose) verboselog
 
 template<typename... Args>
 void infolog(const char* s, Args... args)