spdlog icon indicating copy to clipboard operation
spdlog copied to clipboard

Log level is not honored with compiler flags like -D_GLIBCXX_DEBUG

Open DavidAce opened this issue 5 years ago • 1 comments

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 avatar Oct 12 '20 12:10 DavidAce

It is not expected. I wonder why though..

gabime avatar Oct 12 '20 16:10 gabime