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

Logger doesn't log above min severity level #390

Closed
ettore opened this issue Feb 10, 2024 · 0 comments
Closed

Logger doesn't log above min severity level #390

ettore opened this issue Feb 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ettore
Copy link
Contributor

ettore commented Feb 10, 2024

Describe the bug

Depending on how the Logger is configured with R2EnableLog(withMinimumSeverityLevel:) it's possible to get into a situation where (for example) errors are not logged when min severity level is set to warning.

How to reproduce?

  1. configure logger with R2EnableLog(withMinimumSeverityLevel: .warning)
  2. trigger a log such as Logger.sharedInstance.log("msg", at: .error, file: "path", line: line)

Observe that the error is not logged.

Readium version

2.6.1

OS version

iOS 17

Testing device

iPhone 15

Environment

macOS: 13.5
platform: arm64
carthage: 0.39.1
Xcode 15.0.1
Build version 15A507

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants