Improve error message for incorrect values of ETCD_CLIENT_DEBUG

Signed-off-by: Jille Timmermans <jille@quis.cx>
This commit is contained in:
Jille Timmermans 2022-07-13 18:55:27 +02:00
parent e3fd58df46
commit ac3f913dad

View File

@ -52,7 +52,7 @@ func etcdClientDebugLevel() zapcore.Level {
}
var l zapcore.Level
if err := l.Set(envLevel); err != nil {
log.Printf("Deprecated env ETCD_CLIENT_DEBUG value. Using default level: 'info'")
log.Printf("Invalid value for environment variable 'ETCD_CLIENT_DEBUG'. Using default level: 'info'")
return zapcore.InfoLevel
}
return l