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

Add log writability check to SystemStatus. #3212

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

EreMaijala
Copy link
Contributor

Since errors writing to log can cause fatal exceptions, it makes sense to verify that the log file is writable (or any other logging method can be initialized). Since logger opens the log file for appending regardless of whether the logged message matches the logging level, the message doesn't need to get written for this check to work.

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @EreMaijala!

@demiankatz demiankatz merged commit 18b4cee into vufind-org:dev Nov 13, 2023
6 checks passed
@demiankatz demiankatz deleted the dev-systemstatus-log-check branch November 13, 2023 14:49
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