Remove use of "DEBUG" env var from CLI and decouple DEBUG from --log-level
Signed-off-by: Doug Davis <dug@us.ibm.com> Upstream-commit: 534ed8c2d4573e88fcb68b23341504f8949b34b5 Component: engine
This commit is contained in:
@ -52,11 +52,8 @@ func main() {
|
||||
setLogLevel(logrus.InfoLevel)
|
||||
}
|
||||
|
||||
// -D, --debug, -l/--log-level=debug processing
|
||||
// When/if -D is removed this block can be deleted
|
||||
if *flDebug {
|
||||
os.Setenv("DEBUG", "1")
|
||||
setLogLevel(logrus.DebugLevel)
|
||||
}
|
||||
|
||||
if len(flHosts) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user