mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 21:57:42 +00:00
Revert "Write Qt messages only to log in debug mode"
This reverts commit 1d2e34f5e95310e80d2a54bf91dcdf2fc63314b2.
This commit is contained in:
parent
2cb7d8ea77
commit
0b115dedf5
@ -466,13 +466,14 @@ void Launcher::initQtMessageLogging() {
|
|||||||
QtMsgType type,
|
QtMsgType type,
|
||||||
const QMessageLogContext &context,
|
const QMessageLogContext &context,
|
||||||
const QString &msg) {
|
const QString &msg) {
|
||||||
|
if (OriginalMessageHandler) {
|
||||||
|
OriginalMessageHandler(type, context, msg);
|
||||||
|
}
|
||||||
if (Logs::DebugEnabled() || !Logs::started()) {
|
if (Logs::DebugEnabled() || !Logs::started()) {
|
||||||
if (!Logs::WritingEntry()) {
|
if (!Logs::WritingEntry()) {
|
||||||
// Sometimes Qt logs something inside our own logging.
|
// Sometimes Qt logs something inside our own logging.
|
||||||
LOG((msg));
|
LOG((msg));
|
||||||
}
|
}
|
||||||
} else if (OriginalMessageHandler) {
|
|
||||||
OriginalMessageHandler(type, context, msg);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user