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

Log connection error message #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PriceChild
Copy link

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)

@coveralls
Copy link

Coverage Status

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants