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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

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)

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;