File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ require (
8
8
github.com/arduino/go-properties-orderedmap v0.0.0-20181003091528-89278049acd3
9
9
github.com/go-errors/errors v1.0.1
10
10
github.com/juju/errors v0.0.0-20190207033735-e65537c515d7 // indirect
11
+ github.com/sirupsen/logrus v1.4.2
11
12
)
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import (
52
52
paths "github.com/arduino/go-paths-helper"
53
53
properties "github.com/arduino/go-properties-orderedmap"
54
54
"github.com/go-errors/errors"
55
+ "github.com/sirupsen/logrus"
55
56
)
56
57
57
58
const VERSION = "1.4.5"
@@ -373,6 +374,9 @@ func main() {
373
374
if * debugLevelFlag > - 1 {
374
375
ctx .DebugLevel = * debugLevelFlag
375
376
}
377
+ if ctx .DebugLevel < 10 {
378
+ logrus .SetOutput (ioutil .Discard )
379
+ }
376
380
377
381
if * quietFlag {
378
382
ctx .SetLogger (i18n.NoopLogger {})
You can’t perform that action at this time.
0 commit comments