Skip to content

Compare loggable SeverityLevel by its numeric (not string) value #391

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

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

ettore
Copy link
Contributor

@ettore ettore commented Feb 10, 2024

This fixes issue #390

The problem is that SeverityLevel rawValue is a String, and therefore comparing by rawValue will make level.rawValue >= minimumSeverityLevel.rawValue fail for errors if the minimumSeverityLevel is warning.

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for spotting that, Ettore 🙏

@mickael-menu mickael-menu merged commit 3e647b6 into readium:develop Feb 12, 2024
@ettore ettore deleted the fix/logger branch February 16, 2024 01:21
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.

2 participants