Commit 434ecfc4 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Clang: Log messages with time stamp



Change-Id: I0bb56d319328a2773e55609d63b4ac28eea07386
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 8c23b493
......@@ -69,6 +69,7 @@
#include <cplusplus/Icons.h>
#include <QDateTime>
#include <QDir>
#include <QElapsedTimer>
#include <QLoggingCategory>
......@@ -691,8 +692,10 @@ void IpcCommunicator::logRestartedDueToUnexpectedFinish()
void IpcCommunicator::logError(const QString &text)
{
Core::MessageManager::write(text, Core::MessageManager::Flash);
qWarning("%s", qPrintable(text));
const QString textWithTimestamp = QDateTime::currentDateTime().toString(Qt::ISODate)
+ ' ' + text;
Core::MessageManager::write(textWithTimestamp, Core::MessageManager::Flash);
qWarning("%s", qPrintable(textWithTimestamp));
}
void IpcCommunicator::initializeBackendWithCurrentData()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment