Skip to content

Commit

Permalink
Merge pull request #14203 from Jille/patch-1
Browse files Browse the repository at this point in the history
clientv3: Fix parsing of ETCD_CLIENT_DEBUG
  • Loading branch information
ahrtr committed Jul 13, 2022
2 parents dae7838 + ac3f913 commit 16c10d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/v3/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func etcdClientDebugLevel() zapcore.Level {
return zapcore.InfoLevel
}
var l zapcore.Level
if err := l.Set(envLevel); err == nil {
log.Printf("Deprecated env ETCD_CLIENT_DEBUG value. Using default level: 'info'")
if err := l.Set(envLevel); err != nil {
log.Printf("Invalid value for environment variable 'ETCD_CLIENT_DEBUG'. Using default level: 'info'")
return zapcore.InfoLevel
}
return l
Expand Down

0 comments on commit 16c10d6

Please sign in to comment.