-
Notifications
You must be signed in to change notification settings - Fork 888
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
level-change workaround doesn't work when once
is used instead of on
#1572
Comments
Line 99 in 5aec425
Edit: nevermind, it just doesn't respect the options param. |
I don't think there is much we can do about this. We do not override |
Ah, I see. I think that should work. I can work on a PR to add it as an argument. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
There is a workaround for the
level-change
event described here, which allows users to ignorelevel-change
events created by child loggers. It appears this doesn't work when usingonce
instead ofon
.Working code (Using
on
)The given code sample using
on
works fine:This correctly logs:
Not working code (Using
once
)The same thing does NOT work when replacing
on
withonce
:This incorrectly logs:
The text was updated successfully, but these errors were encountered: