Skip to content

Fix min loglevel #951

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sproctor
Copy link
Contributor

@sproctor sproctor commented Jun 3, 2025

What kind of change does this PR introduce?

Bug fix, feature, docs update

What is the current behavior?

The global Kermit minSeverity will take precedence if it is higher than specified logLevel.

What is the new behavior?

There doesn't appear to be good way to respect DEFAULT_LOG_LEVEL and the global minSeverity, so we should specify override the minSeverity.

Additional context

The phrase "default logging level" could mean default level at and above which logs are shown, or default level applied to logs. I updated the docs specify this.

Finally, KermitSupabaseLogger seemed to be accidentally exposed in the API. I changed the API values to be explicit SupabaseLogger and made KermitSupabaseLogger internal. Also, setLevel was internal and never called, so I removed it.

sproctor added 2 commits June 2, 2025 22:27
Update docs to indicate that log level passed to plugins is the min log level
Don't allow changing the log level of the default logger after initialization
Set Kermit minSeverity using logLevel
@sproctor sproctor requested a review from jan-tennert as a code owner June 3, 2025 13:23
@jan-tennert
Copy link
Collaborator

The phrase "default logging level" could mean default level at and above which logs are shown, or default level applied to logs. I updated the docs specify this.

Sure, so it was built so you could set the log level per module, also explaining this:

Also, setLevel was internal and never called, so I removed it.

It was internal because because you'd set it via Plugin.Companion.setLogLevel()

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