Fix log format bug

This commit is contained in:
Ming Deng
2021-02-05 22:26:52 +08:00
parent 62aa0188c4
commit 4855146ac6
5 changed files with 10 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ func (lm *LogMsg) OldStyleFormat() string {
msg := lm.Msg
if len(lm.Args) > 0 {
lm.Msg = fmt.Sprintf(lm.Msg, lm.Args...)
msg = fmt.Sprintf(lm.Msg, lm.Args...)
}
msg = lm.Prefix + " " + msg