mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 18:00:54 +00:00
commit
aa2c0ca108
@ -764,9 +764,7 @@ func formatLog(f interface{}, v ...interface{}) string {
|
||||
if len(v) == 0 {
|
||||
return msg
|
||||
}
|
||||
if strings.Contains(msg, "%") && !strings.Contains(msg, "%%") {
|
||||
// format string
|
||||
} else {
|
||||
if !strings.Contains(msg, "%") {
|
||||
// do not contain format char
|
||||
msg += strings.Repeat(" %v", len(v))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user