Don't log DB passwords (#4583) (#4589)

This commit is contained in:
Robert Kaussow 2024-12-19 21:17:56 +01:00 committed by GitHub
parent fc40696e93
commit 80ea0d1f2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,7 @@ func setupStore(ctx context.Context, c *cli.Command) (store.Store, error) {
Config: datasource, Config: datasource,
XORM: xorm, XORM: xorm,
} }
log.Trace().Msgf("setup datastore: %#v", *opts) log.Debug().Str("driver", driver).Any("xorm", xorm).Msg("setting up datastore")
store, err := datastore.NewEngine(opts) store, err := datastore.NewEngine(opts)
if err != nil { if err != nil {
return nil, fmt.Errorf("could not open datastore: %w", err) return nil, fmt.Errorf("could not open datastore: %w", err)