Skip to content

Commit

Permalink
fix issue on No ElasticSearch node available. Related to olivere/elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
madziefe committed Jul 26, 2016
1 parent a18cde7 commit cdb108e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier/elasticsearch-notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (es *ElasticSearchNotifier) NotifierName() string {

func (es *ElasticSearchNotifier) Notify(messages Messages) bool {

client, err := elastic.NewClient(elastic.SetURL(es.Host))
client, err := elastic.NewClient(elastic.SetURL(es.Host), elastic.SetSniff(false))
if err != nil {
log.Println("unable to access elasticsearch. can't send notification. ", err)
return false
Expand Down

0 comments on commit cdb108e

Please sign in to comment.