mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 20:59:03 +00:00
Don't log postgres password when connecting
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user