Don't log DB passwords (#4583)

Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
qwerty287 2024-12-18 16:46:36 +02:00 committed by GitHub
parent 8788794748
commit b4f5d625c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,7 +84,7 @@ func setupStore(ctx context.Context, c *cli.Command) (store.Store, error) {
Config: datasource,
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)
if err != nil {
return nil, fmt.Errorf("could not open datastore: %w", err)