Skip to content

Log connection failed events at info level #575

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

Merged
merged 1 commit into from
Aug 13, 2025

Conversation

bauer-andreas
Copy link
Contributor

According to the logging best practices 001: Choosing log levels it is okay for libraries to chose the info log level "[...] for things that went wrong but can’t be communicated through other means like throwing from a method".

Postgres connection errors are currently not surfaced and retried forever. To provide better visibility for these cases we bump the log level from debug to info in this case.

@bauer-andreas bauer-andreas force-pushed the andreas-bauer/log-level-info branch from b1defc7 to 0870bb3 Compare July 30, 2025 13:31
@fabianfett fabianfett added the semver-minor Adds new public API. label Aug 13, 2025
@fabianfett fabianfett merged commit 8ee6118 into vapor:main Aug 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants