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

Fix a small problem in the basic example #1367

Merged
merged 1 commit into from
Dec 20, 2019
Merged

Fix a small problem in the basic example #1367

merged 1 commit into from
Dec 20, 2019

Conversation

mike239x
Copy link

The line

SPDLOG_TRACE("Some trace message with param {}", {});

which normally is discarded at the compile time since by deafult
SPDLOG_ACTIVE_LEVEL is at SPDLOG_LEVEL_INFO. If however, one goes
to tweak.me and sets

 #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE

suddenly the basic example does not compile any more.
This commit fixes the potential problem.

The line
```
SPDLOG_TRACE("Some trace message with param {}", {});
```
which normally is discarded at the compile time since by deafult
`SPDLOG_ACTIVE_LEVEL` is at `SPDLOG_LEVEL_INFO`. If however, one goes
to `tweak.me` and sets
```
 #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
```
suddenly the basic example does not compile any more.
This commit fixes the potential problem.
@gabime gabime merged commit c73a5ff into gabime:v1.x Dec 20, 2019
bachittle pushed a commit to bachittle/spdlog that referenced this pull request Dec 22, 2022
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.

2 participants