@@ -13,7 +13,7 @@ func initEs() {
elastic.SetSniff(false))
EsClient = client
if err != nil {
- panic("ElasticSearch连接失败")
+ panic("ElasticSearch连接失败,Err:" + err.Error())
//go alarm_msg.SendAlarmMsg("ElasticSearch连接失败", 2)
}
return