catalogue icon indicating copy to clipboard operation
catalogue copied to clipboard

Log connection error message

Open PriceChild opened this issue 5 years ago • 1 comments

Logs the error to aid troubleshooting. e.g.

ts=2019-04-23T10:31:03Z caller=main.go:121 Error="Unable to connect to Database" DSN="username@someserver:password@tcp(someserver.database.azure.com:3306)/socksdb?allowNativePasswords=true&tls=true" ERR="tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config"

(The error shown above is another bug, I think fixed by https://github.com/go-sql-driver/mysql/pull/564/files but not included in the current build)

PriceChild avatar Apr 23 '19 11:04 PriceChild

Coverage Status

Coverage remained the same at 25.926% when pulling bfc0f6d518077b6ad2c2eccafc07f8d3ffd5892c on PriceChild:log-db-error into 97545f4ae068250190491a970a8940c44f1cd2a5 on microservices-demo:master.

coveralls avatar Apr 23 '19 11:04 coveralls