print conn error

This commit is contained in:
vinchent 2024-08-28 14:23:32 +02:00
parent 8e76d2a6cd
commit 3dba9b23dc

View File

@ -71,7 +71,7 @@ func connectToDB() *sql.DB {
for { for {
connection, err := openDB(dsn) connection, err := openDB(dsn)
if err != nil { if err != nil {
log.Println("Postgres not yet ready ...") log.Println("Postgres not yet ready ...: ", err)
counts++ counts++
} else { } else {
log.Println("Connected to Postgres!") log.Println("Connected to Postgres!")