1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 23:10:19 +00:00

Add format call before logging

This commit is contained in:
IamCathal
2020-08-20 19:06:51 +01:00
parent 6bdedff457
commit 705e091593
5 changed files with 11 additions and 9 deletions

@ -71,7 +71,7 @@ func (el *esLogger) WriteMsg(lm *logs.LogMsg) error {
idx := LogDocument{
Timestamp: lm.When.Format(time.RFC3339),
Msg: lm.Msg,
Msg: el.Format(lm),
}
body, err := json.Marshal(idx)