Browse Source

新增链接Es错误信息

tuoling805 1 year ago
parent
commit
65c9aadbc9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/elastic.go

+ 1 - 1
utils/elastic.go

@@ -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