Skip to content
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

Unify log-level helper methods behavior. #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmitry-goncharuk
Copy link

Logdna::Ruby logger overrides its parent Logger class behavior for helper methods such as #info?.
It also defines a 5th level TRACE that seems to be the same as Loger::Severity::UNKNOWN.

So I've decided to rewrite the overridden methods because it makes Logdna::Ruby logger incompatible with, for example, Rails. For example ActionController::LogSubscriber https://github.com/rails/rails/blob/v5.2.1/actionpack/lib/action_controller/log_subscriber.rb#L8 is only logging responses when severity is set to below INFO. But the Logdna::Ruby#info? returns false even if the log level has been set to DEBUG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants