We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e1149a + d864898 commit 4ce8d74Copy full SHA for 4ce8d74
cmd/golangci-lint/main.go
@@ -1,16 +1,10 @@
1
package main
2
3
import (
4
- "log"
5
-
6
"github.com/golangci/golangci-lint/pkg/commands"
7
- "github.com/sirupsen/logrus"
8
)
9
10
func main() {
11
- log.SetFlags(0) // don't print time
12
- logrus.SetLevel(logrus.WarnLevel)
13
14
e := commands.NewExecutor()
15
if err := e.Execute(); err != nil {
16
panic(err)
pkg/commands/root.go
@@ -23,8 +23,11 @@ func (e *Executor) initRoot() {
23
PersistentPreRun: func(cmd *cobra.Command, args []string) {
24
runtime.GOMAXPROCS(e.cfg.Run.Concurrency)
25
26
+ log.SetFlags(0) // don't print time
27
if e.cfg.Run.IsVerbose {
28
logrus.SetLevel(logrus.InfoLevel)
29
+ } else {
30
+ logrus.SetLevel(logrus.WarnLevel)
31
}
32
33
if e.cfg.Run.CPUProfilePath != "" {
0 commit comments