File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 11package main
22
33import (
4- "log"
5-
64 "github.com/golangci/golangci-lint/pkg/commands"
7- "github.com/sirupsen/logrus"
85)
96
107func main () {
11- log .SetFlags (0 ) // don't print time
12- logrus .SetLevel (logrus .WarnLevel )
13-
148 e := commands .NewExecutor ()
159 if err := e .Execute (); err != nil {
1610 panic (err )
Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ func (e *Executor) initRoot() {
2323 PersistentPreRun : func (cmd * cobra.Command , args []string ) {
2424 runtime .GOMAXPROCS (e .cfg .Run .Concurrency )
2525
26+ log .SetFlags (0 ) // don't print time
2627 if e .cfg .Run .IsVerbose {
2728 logrus .SetLevel (logrus .InfoLevel )
29+ } else {
30+ logrus .SetLevel (logrus .WarnLevel )
2831 }
2932
3033 if e .cfg .Run .CPUProfilePath != "" {
You can’t perform that action at this time.
0 commit comments