-
Notifications
You must be signed in to change notification settings - Fork 254
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
Surprising error when using enabled
method in logger
#606
Comments
|
I found it when I get this behaviour but it is still surprising API and I think it can be considered to be changed on major release. |
This won't work due to |
Oh, OK, understood. |
Version: 0.4.20
Example code:
It prints:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=8c70eca078d4f717845e436b2f308afe
Expected behaviour:
I expected that if my loggers
enabled()
returns false, thelog
would not be called.The text was updated successfully, but these errors were encountered: