mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 15:47:36 +02:00
core/logging: less verbose logs (#5040)
This commit is contained in:
parent
ecbd84b7df
commit
4ac06d3bbd
18 changed files with 51 additions and 42 deletions
|
@ -70,7 +70,7 @@ func (c *controller) initAPI(ctx context.Context) error {
|
|||
}
|
||||
|
||||
func run(ctx context.Context, name string, runFn func(context.Context) error) error {
|
||||
log.Ctx(ctx).Info().Str("name", name).Msg("starting")
|
||||
log.Ctx(ctx).Debug().Str("name", name).Msg("starting")
|
||||
err := runFn(ctx)
|
||||
if err != nil && !errors.Is(err, context.Canceled) {
|
||||
return fmt.Errorf("%s: %w", name, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue