Skip to content

fix(Logger): Warn on invalid loglevel configuration option - #44262

Merged
nickvergessen merged 1 commit into
masterfrom
fix/log-on-invalid-loglevel
Mar 18, 2024
Merged

fix(Logger): Warn on invalid loglevel configuration option#44262
nickvergessen merged 1 commit into
masterfrom
fix/log-on-invalid-loglevel

Conversation

@susnux

Copy link
Copy Markdown
Contributor

Summary

When the configuration is not a valid integer do not silently fallback to warn, instead try to cast it (might be more what the admin wanted to configure, e.g. allows '0' when 0 was meant).
And if the value is invalid do handle it not silently but at least put a warning in the log (even we do not have access to the logger we can put it in the error log.

Checklist

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnuxsusnux added this to the Nextcloud 29 milestone Mar 17, 2024
@susnux
susnux requested review from a team, ArtificialOwl, nfebe, nickvergessen and sorbaugh and removed request for a teamMarch 17, 2024 20:17
@AltahrimAltahrim added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 18, 2024
@nickvergessen
nickvergessen merged commit 3af954f into masterMar 18, 2024
@nickvergessen
nickvergessen deleted the fix/log-on-invalid-loglevel branch March 18, 2024 09:59
@AltahrimAltahrim mentioned this pull request Mar 18, 2024
@skjnldsv

Copy link
Copy Markdown
Member

Thank you for the additional fix :)

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: logging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@susnux@skjnldsv@nickvergessen@Altahrim@come-nc