Skip to content

Commit

Permalink
core/zero: lower log level (#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdoxsey committed Apr 11, 2024
1 parent dc7820e commit ed378af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/zero/connect-mux/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/zero/grpcconn/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions internal/zero/reconciler/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed378af

Please sign in to comment.