Commit 1d79c3d3 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

debug

parent fc8a50a8
...@@ -38,6 +38,7 @@ func CreateEsClientFromEnv() (*es.Client, error) { ...@@ -38,6 +38,7 @@ func CreateEsClientFromEnv() (*es.Client, error) {
if esUsername != "" && esPassword != "" { if esUsername != "" && esPassword != "" {
opts = append(opts, es.SetBasicAuth(esUsername, esPassword)) opts = append(opts, es.SetBasicAuth(esUsername, esPassword))
} }
opts = append(opts, es.SetTraceLog(&log.Logger))
sniff := os.Getenv("ELASTIC_SNIFF") sniff := os.Getenv("ELASTIC_SNIFF")
if sniff == "" { if sniff == "" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment