Skip to content

Commit 8af60f3

Browse files
committed
Only print skipped check information to log
This information is not normally of interest.
1 parent e5133ae commit 8af60f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

check/check.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/arduino/arduino-check/configuration/checkmode"
1616
"github.com/arduino/arduino-check/project"
1717
"github.com/arduino/arduino-check/result/feedback"
18+
"github.com/sirupsen/logrus"
1819
)
1920

2021
// RunChecks runs all checks for the given project and outputs the results.
@@ -31,8 +32,7 @@ func RunChecks(project project.Type) {
3132
}
3233

3334
if !runCheck {
34-
// TODO: this should only be printed to log and in verbose mode
35-
fmt.Printf("Skipping check: %s\n", checkConfiguration.ID)
35+
logrus.Infof("Skipping check: %s\n", checkConfiguration.ID)
3636
continue
3737
}
3838

go.sum

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V
9999
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
100100
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
101101
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
102+
github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=
102103
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
103104
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
104105
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=

0 commit comments

Comments
 (0)