mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(log): fixes extra param logging
This commit is contained in:
parent
262e7193a3
commit
8e89173095
@ -58,7 +58,14 @@ func Debug2(message string, v ...interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Info(format string, v ...interface{}) {
|
func Info(format string, v ...interface{}) {
|
||||||
Root.Info(fmt.Sprintf(format, v))
|
var message string
|
||||||
|
if len(v) > 0 {
|
||||||
|
message = fmt.Sprintf(format, v)
|
||||||
|
} else {
|
||||||
|
message = format
|
||||||
|
}
|
||||||
|
|
||||||
|
Root.Info(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Info2(message string, v ...interface{}) {
|
func Info2(message string, v ...interface{}) {
|
||||||
@ -66,7 +73,14 @@ func Info2(message string, v ...interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Warn(format string, v ...interface{}) {
|
func Warn(format string, v ...interface{}) {
|
||||||
Root.Warn(fmt.Sprintf(format, v))
|
var message string
|
||||||
|
if len(v) > 0 {
|
||||||
|
message = fmt.Sprintf(format, v)
|
||||||
|
} else {
|
||||||
|
message = format
|
||||||
|
}
|
||||||
|
|
||||||
|
Root.Warn(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Warn2(message string, v ...interface{}) {
|
func Warn2(message string, v ...interface{}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user