From 1e94a97964f2a6f626cd899cd2d71db2a810ae88 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 11 Apr 2022 11:52:57 +0100 Subject: [PATCH] Add time to wfserver debugging --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e7e74b0..81448f6 100644 --- a/main.cpp +++ b/main.cpp @@ -221,7 +221,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt // Write to the output category of the message and the message itself out << context.category << ": " << msg << "\n"; #ifdef BUILD_WFSERVER - std::cout << msg.toLocal8Bit().toStdString() << "\n"; + std::cout << QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz ") << msg.toLocal8Bit().toStdString() << "\n"; #endif out.flush(); // Clear the buffered data }