Browse Source

fix 日志中的返回信息

pull/2/head
lucas 2 months ago
parent
commit
e5ea7a485a
  1. 2
      dbHelper/elasticsearchHelper.go

2
dbHelper/elasticsearchHelper.go

@ -191,7 +191,7 @@ func (the *ESHelper) BulkWrite(index, reqBody string) {
if res.StatusCode != 200 && res.StatusCode != 201 {
log.Panicf("es 写入失败,err=%s \n body=%s", string(respBody), reqBody)
}
log.Printf("es 写入[%s],完成,res=%s ", index, reqBody)
log.Printf("es 写入[%s],完成,res=%s ", index, respBody)
}

Loading…
Cancel
Save