Merge pull request #516 from harshavardhana/pr_out_add_some_logging_with_debug

This commit is contained in:
Harshavardhana
2015-04-27 19:44:34 -07:00
4 changed files with 34 additions and 13 deletions

View File

@@ -18,6 +18,7 @@ package main
import (
"fmt"
"io/ioutil"
"os"
"os/user"
"path"
@@ -264,6 +265,8 @@ func main() {
globalDebugFlag = c.GlobalBool("debug")
if globalDebugFlag {
app.ExtraInfo = getSystemData()
} else {
log.Debug = log.New(ioutil.Discard, "", 0)
}
return nil
}