From 0b115dedf5e0f200326c5895f16c87f09a9cd7ea Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 21 Aug 2023 16:16:21 +0400 Subject: [PATCH] Revert "Write Qt messages only to log in debug mode" This reverts commit 1d2e34f5e95310e80d2a54bf91dcdf2fc63314b2. --- Telegram/SourceFiles/core/launcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index 436a28e663..7eb611296a 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -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); } }); }