1
0
miroir de https://github.com/astaxie/beego.git synchronisé 2025-09-15 02:42:10 +00:00

Fix ES index problem

Cette révision appartient à :
Ming Deng
2020-06-28 21:12:12 +08:00
Parent 6b6a0e8a56
révision de51bd28d7

Voir le fichier

@@ -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() {