File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ func VerbosePrintf(format string, v ...interface{}) {
31
31
}
32
32
33
33
// VerbosePrint behaves like Print but only prints when verbosity is enabled.
34
- func VerbosePrint (message string ) {
34
+ func VerbosePrint (v ... interface {} ) {
35
35
if configuration .Verbose () && (configuration .OutputFormat () == outputformat .Text ) {
36
- Printf ( message )
36
+ Print ( v ... )
37
37
}
38
38
}
39
39
@@ -43,9 +43,9 @@ func Printf(format string, v ...interface{}) {
43
43
}
44
44
45
45
// Print behaves like fmt.Print but only prints when output format is set to `text`.
46
- func Print (message string ) {
46
+ func Print (v ... interface {} ) {
47
47
if configuration .OutputFormat () == outputformat .Text {
48
- fmt .Printf ( message )
48
+ fmt .Print ( v ... )
49
49
}
50
50
}
51
51
@@ -55,7 +55,7 @@ func Errorf(format string, v ...interface{}) {
55
55
}
56
56
57
57
// Error behaves like fmt.Print but adds a newline and also logs the error.
58
- func Error (errorMessage string ) {
59
- fmt .Fprintln (os .Stderr , errorMessage )
60
- logrus .Error (fmt .Sprint (errorMessage ))
58
+ func Error (v ... interface {} ) {
59
+ fmt .Fprintln (os .Stderr , v ... )
60
+ logrus .Error (fmt .Sprint (v ... ))
61
61
}
You can’t perform that action at this time.
0 commit comments