diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index 0b6afb7aa..312ce9667 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -106,6 +106,10 @@ void ComputeDebugMode() { auto file = QFile(debugModeSettingPath); if (file.exists() && file.open(QIODevice::ReadOnly)) { Logs::SetDebugEnabled(file.read(1) != "0"); +#if defined _DEBUG + } else { + Logs::SetDebugEnabled(true); +#endif } if (cDebugMode()) { Logs::SetDebugEnabled(true); diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index 9a04542ef..382d65aaf 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -335,11 +335,7 @@ void SetDebugEnabled(bool enabled) { } bool DebugEnabled() { -#if defined _DEBUG - return true; -#else return DebugModeEnabled; -#endif } bool WritingEntry() {