Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/zero: lower log level #5065

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading