catalogue
catalogue copied to clipboard
Log connection error message
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)