Add time to wfserver debugging

merge-requests/9/merge
Phil Taylor 2022-04-11 11:52:57 +01:00
rodzic 718d54ee3b
commit 1e94a97964
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
}