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

Handle unknown severity levels #50

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

urmastalimaa
Copy link
Member

@urmastalimaa urmastalimaa commented Mar 13, 2024

Lenjador#add accepts severity. Fall back to info when the severity
cannot be mapped to a known "level" to not lose messages.

This was motivated by an external tool calling #add with 'any' severity.

lib/lenjador.rb Outdated Show resolved Hide resolved
Logger#add expects an integer in the first position.
The previous implementation mistakenly assumed the first position
argument to be a severity 'label' ('info').
@urmastalimaa urmastalimaa force-pushed the handle_unknown_severity_levels branch from c40aa3a to 449897a Compare March 13, 2024 07:59
@urmastalimaa urmastalimaa merged commit 1724152 into master Mar 13, 2024
6 checks passed
@urmastalimaa urmastalimaa deleted the handle_unknown_severity_levels branch March 13, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants