We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e63e5 commit 7a65016Copy full SHA for 7a65016
pkg/log/log.go
@@ -58,15 +58,29 @@ func Debug2(message string, v ...interface{}) {
58
}
59
60
func Info(format string, v ...interface{}) {
61
- Root.Info(fmt.Sprintf(format, v))
+ var message string
62
+ if len(v) > 0 {
63
+ message = fmt.Sprintf(format, v)
64
+ } else {
65
+ message = format
66
+ }
67
+
68
+ Root.Info(message)
69
70
71
func Info2(message string, v ...interface{}) {
72
Root.Info(message, v...)
73
74
75
func Warn(format string, v ...interface{}) {
- Root.Warn(fmt.Sprintf(format, v))
76
77
78
79
80
81
82
83
+ Root.Warn(message)
84
85
86
func Warn2(message string, v ...interface{}) {
0 commit comments