diff --git a/db_service/setup_db.go b/db_service/setup_db.go index 406d82557..e50711d71 100644 --- a/db_service/setup_db.go +++ b/db_service/setup_db.go @@ -124,9 +124,11 @@ func setupMysqlDb(logger lager.Logger) (*gorm.DB, error) { } logger.Info("Connecting to MySQL Database", lager.Data{ - "host": dbHost, - "port": dbPort, - "name": dbName, + "host": dbHost, + "port": dbPort, + "name": dbName, + "username": dbUsername, + "tls": tlsStr, }) connStr := fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=utf8mb4&parseTime=True&loc=Local&timeout=30s%v", dbUsername, dbPassword, dbHost, dbPort, dbName, tlsStr) diff --git a/docs/draft-release-notes.md b/docs/draft-release-notes.md index 1da4904fb..ccf02ed16 100644 --- a/docs/draft-release-notes.md +++ b/docs/draft-release-notes.md @@ -12,4 +12,5 @@ - Error messages during encryption tell you how to fix the issue - Error messages during encryption log DB row ID - Checks the database for readability of all fields before attempting encryption or removing salt +- Better logging when setting up database connection leading to improved debug experience