mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
core/zero: lower log level (#5065)
This commit is contained in:
parent
dc7820ea3e
commit
ed378af744
3 changed files with 5 additions and 5 deletions
|
@ -83,7 +83,7 @@ func (svc *Mux) subscribeAndDispatch(ctx context.Context, onConnected func()) (e
|
|||
log.Ctx(ctx).Debug().Msg("subscribed to connect service")
|
||||
for {
|
||||
msg, err := stream.Recv()
|
||||
log.Ctx(ctx).Info().Interface("msg", msg).Err(err).Msg("receive")
|
||||
log.Ctx(ctx).Debug().Interface("msg", msg).Err(err).Msg("receive")
|
||||
if err != nil {
|
||||
return fmt.Errorf("receive: %w", err)
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ func interceptorLogger(ctx context.Context, lvl logging.Level, msg string, field
|
|||
case logging.LevelDebug:
|
||||
l.Debug().Msg(msg)
|
||||
case logging.LevelInfo:
|
||||
l.Info().Msg(msg)
|
||||
l.Debug().Msg(msg)
|
||||
case logging.LevelWarn:
|
||||
l.Warn().Msg(msg)
|
||||
case logging.LevelError:
|
||||
|
|
|
@ -36,19 +36,19 @@ func (c *service) SyncLoop(ctx context.Context) error {
|
|||
case <-ctx.Done():
|
||||
return ctx.Err()
|
||||
case <-c.bundleSyncRequest:
|
||||
log.Ctx(ctx).Info().Msg("bundle sync triggered")
|
||||
log.Ctx(ctx).Debug().Msg("bundle sync triggered")
|
||||
err := c.syncBundles(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("reconciler: sync bundles: %w", err)
|
||||
}
|
||||
case <-c.fullSyncRequest:
|
||||
log.Ctx(ctx).Info().Msg("full sync triggered")
|
||||
log.Ctx(ctx).Debug().Msg("full sync triggered")
|
||||
err := c.syncAll(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("reconciler: sync all: %w", err)
|
||||
}
|
||||
case <-ticker.C:
|
||||
log.Ctx(ctx).Info().Msg("periodic sync triggered")
|
||||
log.Ctx(ctx).Debug().Msg("periodic sync triggered")
|
||||
err := c.syncAll(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("reconciler: sync all: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue