Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Log connection error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PriceChild committed Apr 23, 2019
1 parent 97545f4 commit bfc0f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cataloguesvc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func main() {
// Check if DB connection can be made, only for logging purposes, should not fail/exit
err = db.Ping()
if err != nil {
logger.Log("Error", "Unable to connect to Database", "DSN", dsn)
logger.Log("Error", "Unable to connect to Database", "DSN", dsn, "ERR", err)
}

// Service domain.
Expand Down

0 comments on commit bfc0f6d

Please sign in to comment.