File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ require (
88 github.com/arduino/go-properties-orderedmap v0.0.0-20181003091528-89278049acd3
99 github.com/go-errors/errors v1.0.1
1010 github.com/juju/errors v0.0.0-20190207033735-e65537c515d7 // indirect
11+ github.com/sirupsen/logrus v1.4.2
1112)
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import (
5252 paths "github.com/arduino/go-paths-helper"
5353 properties "github.com/arduino/go-properties-orderedmap"
5454 "github.com/go-errors/errors"
55+ "github.com/sirupsen/logrus"
5556)
5657
5758const VERSION = "1.4.5"
@@ -373,6 +374,9 @@ func main() {
373374 if * debugLevelFlag > - 1 {
374375 ctx .DebugLevel = * debugLevelFlag
375376 }
377+ if ctx .DebugLevel < 10 {
378+ logrus .SetOutput (ioutil .Discard )
379+ }
376380
377381 if * quietFlag {
378382 ctx .SetLogger (i18n.NoopLogger {})
You can’t perform that action at this time.
0 commit comments