Skip to content

Commit

Permalink
Merge pull request etcd-io#14222 from Jille/backport-14203
Browse files Browse the repository at this point in the history
[3.5] clientv3: Fix parsing of ETCD_CLIENT_DEBUG
  • Loading branch information
ahrtr authored Jul 15, 2022
2 parents fb71790 + cbedaf9 commit 3237289
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 3237289

Please sign in to comment.