Don't log postgres password when connecting

This commit is contained in:
András Maróy
2021-01-31 18:53:38 +01:00
parent be83849bee
commit dca81c7918

View File

@@ -98,7 +98,7 @@ func configureDatabase(config *gorm.Config) (*gorm.DB, error) {
if err != nil {
return nil, err
}
log.Printf("Connecting to POSTGRES database: %s", postgresAddress)
log.Printf("Connecting to POSTGRES database: %s", postgresAddress.Redacted())
databaseDialect = postgres.Open(postgresAddress.String())
}