Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only log debug messages when NDEBUG is not defined #4442

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

llyyr
Copy link
Contributor

@llyyr llyyr commented Mar 10, 2023

Regression from 044dd8a

Closes #4440

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

static constexpr QtMsgType logThreshold = QtDebugMsg;
#else
static constexpr QtMsgType logThreshold = QtWarningMsg;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for global constant 'logThreshold' [readability-identifier-naming]

Suggested change
static constexpr QtMsgType logThreshold = QtWarningMsg;
static constexpr QtMsgType LOG_THRESHOLD = QtWarningMsg;

CHANGELOG.md Outdated Show resolved Hide resolved
src/common/QLogging.cpp Outdated Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) March 15, 2023 13:37
@pajlada pajlada merged commit 3809fd1 into Chatterino:master Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no way to set DEBUG_OFF in QLogging.cpp
3 participants