From 3809fd10752dc8364f9f3fff0455e0138d9a26b2 Mon Sep 17 00:00:00 2001 From: llyyr Date: Wed, 15 Mar 2023 19:31:45 +0530 Subject: [PATCH] Only log debug messages when NDEBUG is not defined (#4442) --- CHANGELOG.md | 2 ++ src/common/QLogging.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcb306f342f..48f204b880c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unversioned +- Dev: Only log debug messages when NDEBUG is not defined. (#4442) + ## 2.4.2 - Minor: Added `/banid` command that allows banning by user ID. (#4411) diff --git a/src/common/QLogging.cpp b/src/common/QLogging.cpp index 473d5e4d740..de902b18a6f 100644 --- a/src/common/QLogging.cpp +++ b/src/common/QLogging.cpp @@ -1,6 +1,6 @@ #include "common/QLogging.hpp" -#ifdef DEBUG_OFF +#ifdef NDEBUG static constexpr QtMsgType logThreshold = QtWarningMsg; #else static constexpr QtMsgType logThreshold = QtDebugMsg;