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