diff --git a/CHANGELOG.md b/CHANGELOG.md index fcb306f34..48f204b88 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 473d5e4d7..de902b18a 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;