Skip to content

Commit

Permalink
clientv3: Fix parsing of ETCD_CLIENT_DEBUG
Browse files Browse the repository at this point in the history
It checked `err == nil` rather than `err != nil`.

Signed-off-by: Jille Timmermans <[email protected]>
  • Loading branch information
Jille committed Jul 10, 2022
1 parent 20bf49c commit e3fd58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/v3/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func etcdClientDebugLevel() zapcore.Level {
return zapcore.InfoLevel
}
var l zapcore.Level
if err := l.Set(envLevel); err == nil {
if err := l.Set(envLevel); err != nil {
log.Printf("Deprecated env ETCD_CLIENT_DEBUG value. Using default level: 'info'")
return zapcore.InfoLevel
}
Expand Down

0 comments on commit e3fd58d

Please sign in to comment.