-
Notifications
You must be signed in to change notification settings - Fork 67
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
Guarantee level_override exists #100
Conversation
@@ -746,6 +746,10 @@ def format_severity(severity) | |||
SEV_LABEL[severity] || 'ANY' | |||
end | |||
|
|||
def level_override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you comment that reason to extract level_override
as method at this place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do.
4449bce
to
a114504
Compare
Some Ruby apps subclass Logger without running the superclass constructor, which means that `@level_override` isn't initialized properly. This can be fixed in some cases, but the gem should maintain backwards compatibility.
a114504
to
3246f38
Compare
Sorry about the force-pushes; didn't realize I'd used the wrong email on the commits. |
when can we expect 1.6.1? without this aws lambda runtime breaks with the latest version of activesupport which now depends on logger rails/rails@d9adf17 |
@hsbt If there's anything additional I need to do, please let me know. |
This sounds like a definite bug obviously. |
Warn wrong code, #100: > Some Ruby apps subclass Logger without running the superclass > constructor, which means that `@level_override` isn't initialized > properly.
Some Ruby apps subclass Logger without running the superclass constructor, which means that
@level_override
isn't initialized properly. This can be fixed in some cases, but the gem should maintain backwards compatibility.My repro is from using Chef v12, but this should also address #99.