From: Olivier Goffart Date: Wed, 5 Feb 2020 11:37:58 +0000 (+0100) Subject: Logger: Remove the thread pointer from the log. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~126^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=44fc881ced5dd244e2f6b796f6104f7741f37cd7;p=nextcloud-desktop.git Logger: Remove the thread pointer from the log. 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. --- diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 4faab8bd2..a1ba8b015 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -18,7 +18,6 @@ #include #include -#include #include #include @@ -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;