[API] Support for Logger::Enabled() is incomplete #2667
Labels
abi:version_2
Fix is available WITH_ABI_VERSION_2
breaking change
API or ABI breaking change
bug
Something isn't working
help wanted
Good for taking. Extra help will be provided by maintainers
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Logger::Enabled() always return false.
This is due to:
The severity is kMaxSeverity by default, meaning all events are disabled by default.
There is a method to change the logger severity:
but is it protected, and never called in the code base.
Any user code that checks for Enabled() can not emit logs.
Note that EmitLogRecord() helpers never honor the Enabled() flag either.
The text was updated successfully, but these errors were encountered: