未验证 提交 26beef75 编写于 作者: M Ming Deng 提交者: GitHub

Merge pull request #4038 from flycash/fixbug

Fix ES index problem
......@@ -60,8 +60,8 @@ func (el *esLogger) WriteMsg(when time.Time, msg string, level int) error {
}
idx := LogDocument{
timestamp: when.Format(time.RFC3339),
msg: msg,
Timestamp: when.Format(time.RFC3339),
Msg: msg,
}
body, err := json.Marshal(idx)
......@@ -87,8 +87,8 @@ func (el *esLogger) Flush() {
}
type LogDocument struct {
timestamp string
msg string
Timestamp string `json:"timestamp"`
Msg string `json:"msg"`
}
func init() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册