Skip to content

Commit

Permalink
logmsg adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed May 16, 2024
1 parent d311afe commit dfdb454
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/datasync/datasync.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *Client) Sync(ctx context.Context, conn *grpc.ClientConn, opts ...Option
f(options)
}

c.logger.Info().Str("mode", options.Mode.String()).Msg("datasync.sync")
c.logger.Debug().Str("mode", options.Mode.String()).Msg("sync")

return newSync(c, options).Run(ctx, conn)
}
Expand Down Expand Up @@ -85,10 +85,9 @@ func newSync(c *Client, o *Options) *Sync {
}

func (s *Sync) Run(ctx context.Context, conn *grpc.ClientConn) error {
s.logger.Info().Str("mode", s.options.Mode.String()).Msg("datasync.sync")
s.logger.Info().Str("mode", s.options.Mode.String()).Msg(syncRun)

if Has(s.options.Mode, Manifest) {
s.logger.Info().Str("mode", s.options.Mode.String()).Msg("datasync.sync")
if err := s.syncManifest(ctx, conn); err != nil {
return err
}
Expand Down

0 comments on commit dfdb454

Please sign in to comment.