From 80ea0d1f2faea4885d307345c2ca5fbc38495939 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 19 Dec 2024 21:17:56 +0100 Subject: [PATCH] Don't log DB passwords (#4583) (#4589) --- cmd/server/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/setup.go b/cmd/server/setup.go index 3b77816fd..6e9752f59 100644 --- a/cmd/server/setup.go +++ b/cmd/server/setup.go @@ -82,7 +82,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)