Skip to content

Commit

Permalink
cleaner logging
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Sep 2, 2024
1 parent 24bfe2a commit f12dd46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 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 {
atom.SetLevel(zap.WarnLevel)
return zap.NewNop()
}

encoderCfg := zapcore.EncoderConfig{
Expand Down
1 change: 0 additions & 1 deletion cli/config/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ func (c Configurator) exchangeToken(cfg Config, token string) (Config, error) {
c.logger.Debug("Exchanging token", zap.String("token", token))
jwt, err := oauth.ExchangeToken(cfg.OAuthEndpoint(), token)
if err != nil {
c.logger.Error("Could not exchange token", zap.Error(err))
return Config{}, err
}

Expand Down

0 comments on commit f12dd46

Please sign in to comment.