]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
our logger is now so lockfree the output became hella ugly on console output, tweaked...
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jan 2015 10:16:35 +0000 (11:16 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jan 2015 10:16:35 +0000 (11:16 +0100)
pdns/logger.cc

index 6779b758dca12b909609eedee8de1df32f375e0c..186f2ad54d302d95862d78a759b7e4df2770a2c3 100644 (file)
@@ -50,8 +50,7 @@ void Logger::log(const string &msg, Urgency u)
   if(u<=consoleUrgency) {// Sep 14 06:52:09
     char buffer[50];
     strftime(buffer,sizeof(buffer),"%b %d %H:%M:%S ", &tm);
-    clog<<buffer;
-    clog <<msg <<endl;
+    clog << string(buffer) + msg <<endl;
   }
   if( u <= d_loglevel ) {
 #ifndef RECURSOR