Skip to content

Commit

Permalink
Revert "Write Qt messages only to log in debug mode"
Browse files Browse the repository at this point in the history
This reverts commit 1d2e34f.
  • Loading branch information
ilya-fedin committed Aug 21, 2023
1 parent 6bf1faa commit 036075b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Telegram/SourceFiles/core/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,13 +466,14 @@ void Launcher::initQtMessageLogging() {
QtMsgType type,
const QMessageLogContext &context,
const QString &msg) {
if (OriginalMessageHandler) {
OriginalMessageHandler(type, context, msg);
}
if (Logs::DebugEnabled() || !Logs::started()) {
if (!Logs::WritingEntry()) {
// Sometimes Qt logs something inside our own logging.
LOG((msg));
}
} else if (OriginalMessageHandler) {
OriginalMessageHandler(type, context, msg);
}
});
}
Expand Down

0 comments on commit 036075b

Please sign in to comment.