print conn error
This commit is contained in:
parent
8e76d2a6cd
commit
3dba9b23dc
@ -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!")
|
||||||
|
Loading…
Reference in New Issue
Block a user