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:
Doug Davis
2015-03-31 13:49:41 -07:00
parent 93d4e49319
commit 53d8f39607
3 changed files with 7 additions and 12 deletions

View File

@ -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 {