File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ linters:
31
31
- goimports
32
32
- gomoddirectives
33
33
- gomodguard
34
+ - goprintffuncname
34
35
- gosmopolitan
35
36
- govet
36
37
- grouper
@@ -91,7 +92,6 @@ linters:
91
92
# - goconst
92
93
# - gocyclo
93
94
# - godox
94
- # - goprintffuncname
95
95
# - gosec
96
96
# - gosimple
97
97
# - ireturn
Original file line number Diff line number Diff line change @@ -160,19 +160,19 @@ func nowStamp() string {
160
160
return time .Now ().Format (time .StampMilli )
161
161
}
162
162
163
- func log (level string , format string , args ... interface {}) {
163
+ func logf (level string , format string , args ... interface {}) {
164
164
fmt .Fprintf (GinkgoWriter , nowStamp ()+ ": " + level + ": " + format + "\n " , args ... )
165
165
}
166
166
167
167
// Logf prints a info message.
168
168
func Logf (format string , args ... interface {}) {
169
- log ("INFO" , format , args ... )
169
+ logf ("INFO" , format , args ... )
170
170
}
171
171
172
172
// Failf prints an error message.
173
173
func Failf (format string , args ... interface {}) {
174
174
msg := fmt .Sprintf (format , args ... )
175
- log ("INFO" , msg )
175
+ logf ("INFO" , msg )
176
176
Fail (nowStamp ()+ ": " + msg , 1 )
177
177
}
178
178
You can’t perform that action at this time.
0 commit comments