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:
parent
8682bac309
commit
2facc04673
10 changed files with 108 additions and 15 deletions
|
|
@ -60,6 +60,7 @@ func main() {
|
|||
|
||||
if *flDebug {
|
||||
os.Setenv("DEBUG", "1")
|
||||
log.SetLevel("debug")
|
||||
}
|
||||
|
||||
if flag.NArg() < 1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue