]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
move vinfolog to dolog.hh
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 17 Jan 2015 22:51:38 +0000 (23:51 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 17 Jan 2015 22:51:38 +0000 (23:51 +0100)
pdns/dnsdist.cc
pdns/dolog.hh

index 30733a495ef9652c919792b024e8e0118d39f4c8..34a31f00aea2e050f18386feade0ca0bc925d9f4 100644 (file)
@@ -57,8 +57,6 @@ atomic<uint64_t> g_regexBlocks;
 uint16_t g_maxOutstanding;
 bool g_console;
 
-#define vinfolog if(g_verbose)infolog
-
 /* UDP: the grand design. Per socket we listen on for incoming queries there is one thread.
    Then we have a bunch of connected sockets for talking to downstream servers. 
    We send directly to those sockets.
index a3b632c590cb3d034108e55ec6bc2ea75967cdd4..a7eea0b4dc1dc3f29129d8305c02874a19d7740d 100644 (file)
@@ -58,6 +58,9 @@ void genlog(int level, const char* s, Args... args)
     std::cout<<str.str()<<std::endl;
 }
 
+
+#define vinfolog if(g_verbose)infolog
+
 template<typename... Args>
 void infolog(const char* s, Args... args)
 {
@@ -76,3 +79,4 @@ void errlog(const char* s, Args... args)
 {
   genlog(LOG_ERR, s, args...);
 }
+