From 17466b56f6684f2ff75b908f3bc7984c71466a13 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Wed, 11 May 2022 09:48:25 -0400 Subject: [PATCH] No log entries to stderr when in production - VPN-2207 (#3504) --- src/loghandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loghandler.cpp b/src/loghandler.cpp index ace7a9a030..65ca0f5f13 100644 --- a/src/loghandler.cpp +++ b/src/loghandler.cpp @@ -189,7 +189,7 @@ void LogHandler::addLog(const Log& log, const MutexLocker& proofOfLock) { prettyOutput(*m_output, log); } - if ((log.m_logLevel != LogLevel::Debug) || m_showDebug) { + if (!Constants::inProduction()) { QTextStream out(stderr); prettyOutput(out, log); }