Skip to content

Log database health check exceptions at ERROR level#1977

Merged
kayjoosten merged 1 commit intomainfrom
feature/issue-27-log-db-health-check-exception
Apr 16, 2026
Merged

Log database health check exceptions at ERROR level#1977
kayjoosten merged 1 commit intomainfrom
feature/issue-27-log-db-health-check-exception

Conversation

@kayjoosten
Copy link
Copy Markdown
Contributor

Fixes OpenConext/Monitor-bundle#27. The catch block in DoctrineConnectionHealthCheck was silently swallowing exceptions, making database failures impossible to diagnose from logs. Injects PSR-3 LoggerInterface via constructor and logs the exception with full context before returning the status-down report.

Fixes OpenConext/Monitor-bundle#27. The catch block in
DoctrineConnectionHealthCheck was silently swallowing exceptions,
making database failures impossible to diagnose from logs. Injects
PSR-3 LoggerInterface via constructor and logs the exception with
full context before returning the status-down report.
@kayjoosten kayjoosten requested a review from johanib April 15, 2026 12:07
@kayjoosten kayjoosten merged commit 0ce33db into main Apr 16, 2026
2 checks passed
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.

Error message for database check is too generic

2 participants