1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add --log-level support

Next steps, in another PR, would be:
- make all logging go through the logrus stuff
- I'd like to see if we can remove the env var stuff (like DEBUG) but we'll see

Closes #5198

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis 2014-10-01 06:07:24 -07:00
parent 8682bac309
commit 2facc04673
10 changed files with 108 additions and 15 deletions

View file

@ -60,6 +60,7 @@ func main() {
if *flDebug {
os.Setenv("DEBUG", "1")
log.SetLevel("debug")
}
if flag.NArg() < 1 {