mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #813] [MERGED] chore: additional logs for database connections #605
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/813
Author: @ItalyPaleAle
Created: 8/6/2025
Status: ✅ Merged
Merged: 8/6/2025
Merged by: @stonith404
Base:
main← Head:log-db-connection📝 Commits (1)
d73a5dfchore: additional logs for database connections📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
backend/internal/bootstrap/db_bootstrap.go(+4 -1)📄 Description
Adding some additional log statements to the code creating database connections, to have some more debugging info.
This morning, I noticed that the pocket-id container in my server was not responding because something was wrong with the database (it probably wasn't up yet). Despite that, Pocket ID still started a server.
Logs here were not enough to understand what happened (they show a DNS resolution error, but it then didn't retry):
These new logs should help troubleshoot if the issue happens in the future, hopefully.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.