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:
pkg/logs
@ -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)
|
||||
|
Reference in New Issue
Block a user