kopia lustrzana https://gitlab.com/eliggett/wfview
Add time to wfserver debugging
rodzic
718d54ee3b
commit
1e94a97964
2
main.cpp
2
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
|
// Write to the output category of the message and the message itself
|
||||||
out << context.category << ": " << msg << "\n";
|
out << context.category << ": " << msg << "\n";
|
||||||
#ifdef BUILD_WFSERVER
|
#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
|
#endif
|
||||||
out.flush(); // Clear the buffered data
|
out.flush(); // Clear the buffered data
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue