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.
This commit is contained in:
Olivier Goffart 2020-02-05 12:37:58 +01:00 committed by Kevin Ottens
parent 669e42edd1
commit 44fc881ced

View 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;