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 1
1
package main
2
2
3
3
import (
4
- "log"
5
-
6
4
"github.com/golangci/golangci-lint/pkg/commands"
7
- "github.com/sirupsen/logrus"
8
5
)
9
6
10
7
func main () {
11
- log .SetFlags (0 ) // don't print time
12
- logrus .SetLevel (logrus .WarnLevel )
13
-
14
8
e := commands .NewExecutor ()
15
9
if err := e .Execute (); err != nil {
16
10
panic (err )
Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ func (e *Executor) initRoot() {
23
23
PersistentPreRun : func (cmd * cobra.Command , args []string ) {
24
24
runtime .GOMAXPROCS (e .cfg .Run .Concurrency )
25
25
26
+ log .SetFlags (0 ) // don't print time
26
27
if e .cfg .Run .IsVerbose {
27
28
logrus .SetLevel (logrus .InfoLevel )
29
+ } else {
30
+ logrus .SetLevel (logrus .WarnLevel )
28
31
}
29
32
30
33
if e .cfg .Run .CPUProfilePath != "" {
You can’t perform that action at this time.
0 commit comments