@@ -10,6 +10,7 @@ import (
10
10
"time"
11
11
12
12
"github.com/golangci/golangci-lint/pkg/lint/linter"
13
+ "github.com/golangci/golangci-lint/pkg/logutils"
13
14
"github.com/golangci/golangci-lint/pkg/result"
14
15
"github.com/golangci/golangci-lint/pkg/result/processors"
15
16
"github.com/golangci/golangci-lint/pkg/timeutils"
@@ -30,7 +31,7 @@ func runLinterSafe(ctx context.Context, lintCtx *linter.Context, lc linter.Confi
30
31
defer func () {
31
32
if panicData := recover (); panicData != nil {
32
33
err = fmt .Errorf ("panic occured: %s" , panicData )
33
- logrus . Infof ("Panic stack trace: %s" , debug .Stack ())
34
+ logutils . HiddenWarnf ("Panic stack trace: %s" , debug .Stack ())
34
35
}
35
36
}()
36
37
@@ -151,7 +152,7 @@ func (r SimpleRunner) processLintResults(ctx context.Context, inCh <-chan lintRe
151
152
152
153
for res := range inCh {
153
154
if res .err != nil {
154
- logrus . Infof ("Can't run linter %s: %s" , res .linter .Linter .Name (), res .err )
155
+ logutils . HiddenWarnf ("Can't run linter %s: %s" , res .linter .Linter .Name (), res .err )
155
156
continue
156
157
}
157
158
@@ -220,7 +221,7 @@ func (r *SimpleRunner) processIssues(ctx context.Context, issues []result.Issue,
220
221
})
221
222
222
223
if err != nil {
223
- logrus . Infof ("Can't process result by %s processor: %s" , p .Name (), err )
224
+ logutils . HiddenWarnf ("Can't process result by %s processor: %s" , p .Name (), err )
224
225
} else {
225
226
issues = newIssues
226
227
}
0 commit comments