Only log debug messages when NDEBUG is not defined (#4442)

This commit is contained in:
llyyr
2023-03-15 19:31:45 +05:30
committed by GitHub
parent 01a4861d76
commit 3809fd1075
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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)
+1 -1
View File
@@ -1,6 +1,6 @@
#include "common/QLogging.hpp"
#ifdef DEBUG_OFF
#ifdef NDEBUG
static constexpr QtMsgType logThreshold = QtWarningMsg;
#else
static constexpr QtMsgType logThreshold = QtDebugMsg;