Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Sep 2, 2024
1 parent 7b7816d commit af0052e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/cmdutil/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func GetLogger(opts ...loggerOption) *zap.Logger {
if loggerConfig.Verbose {
atom.SetLevel(zap.DebugLevel)
} else {
return zap.NewNop()
atom.SetLevel(zap.WarnLevel)
}

encoderCfg := zapcore.EncoderConfig{
Expand Down
4 changes: 2 additions & 2 deletions cli/config/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (c Configurator) Start(ctx context.Context, prev *Config, flags agentConfig

_, err = c.handleOAuth(ctx, cfg, prev)
if err != nil {
c.logger.Error("Could not handle OAuth", zap.Error(err))
c.logger.Debug("Could not handle OAuth", zap.Error(err))
return err
}

Expand Down Expand Up @@ -265,7 +265,7 @@ func (c Configurator) handleOAuth(ctx context.Context, cfg Config, prev *Config)
var err error
cfg, err = c.exchangeToken(cfg, c.flags.Token)
if err != nil {
c.logger.Error("Could not exchange token", zap.Error(err))
c.logger.Debug("could not exchange token", zap.Error(err))
return Config{}, err
}
}
Expand Down

0 comments on commit af0052e

Please sign in to comment.