Skip to content

Commit

Permalink
Only log debug messages when NDEBUG is not defined (#4442)
Browse files Browse the repository at this point in the history
  • Loading branch information
llyyr authored Mar 15, 2023
1 parent 01a4861 commit 3809fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/common/QLogging.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "common/QLogging.hpp"

#ifdef DEBUG_OFF
#ifdef NDEBUG
static constexpr QtMsgType logThreshold = QtWarningMsg;
#else
static constexpr QtMsgType logThreshold = QtDebugMsg;
Expand Down

0 comments on commit 3809fd1

Please sign in to comment.