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

Log level is not honored with compiler flags like -D_GLIBCXX_DEBUG #1703

Open
DavidAce opened this issue Oct 12, 2020 · 1 comment
Open

Log level is not honored with compiler flags like -D_GLIBCXX_DEBUG #1703

DavidAce opened this issue Oct 12, 2020 · 1 comment

Comments

@DavidAce
Copy link

DavidAce commented Oct 12, 2020

I sometimes debug using the compiler flag -D_GLIBCXX_DEBUG, or with -fsanitize=address. When I do, I have noticed that spdlog doesn't honor the logging level and will either print everything or nothing depending on flag/compiler combination.

Here's an example showing the issue with the latest gcc/clang https://godbolt.org/z/4c3h3z
I can't figure out how to reproduce the issue with -fsanitize=address in godbolt at the moment.

Is this expected? Is there something I can do about it?

@DavidAce DavidAce changed the title Log level is not honored with compiler flags like -D_GLIBCXX_DEBUG Log level is not honored with compiler flags like -D_GLIBCXX_DEBUG Oct 12, 2020
@gabime
Copy link
Owner

gabime commented Oct 12, 2020

It is not expected. I wonder why though..

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

No branches or pull requests

2 participants