Logger: Remove the thread pointer from the log.
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 5 Feb 2020 11:37:58 +0000 (12:37 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 1 Jul 2020 13:13:20 +0000 (15:13 +0200)
We don't do discovery in a thread or use many threads anymore so this is
just noise.

Also use of QString::sprintf is deprecated, and C cast.

src/libsync/logger.cpp

index 4faab8bd20736b14f2cc756893b1fc6e73ef07cf..a1ba8b0158c2ed4bbccaa8526d830d4324ff9556 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <QDir>
 #include <QStringList>
-#include <QThread>
 #include <QtGlobal>
 #include <qmetaobject.h>
 
@@ -103,7 +102,6 @@ void Logger::log(Log log)
         msg = log.timeStamp.toString(QLatin1String("MM-dd hh:mm:ss:zzz")) + QLatin1Char(' ');
     }
 
-    msg += QString().sprintf("%p ", (void *)QThread::currentThread());
     msg += log.message;
     // _logs.append(log);
     // std::cout << qPrintable(log.message) << std::endl;