Unverified Commit f17b04a9 authored by Tao Feng's avatar Tao Feng Committed by GitHub

No need to show the exceptions body info when index not found (#59)

* No need to show the exceptions body info when index not found

* Update elasticsearch_publisher.py

* Update elasticsearch_publisher.py

* Update elasticsearch_publisher.py

* Update elasticsearch_publisher.py

* Update elasticsearch_publisher.py
parent c9d16088
......@@ -135,7 +135,8 @@ class ElasticsearchPublisher(Publisher):
indices = self.elasticsearch_client.indices.get_alias(self.elasticsearch_alias).keys()
return indices
except NotFoundError:
LOGGER.warn("Received index not found error from Elasticsearch", exc_info=True)
LOGGER.warn('Received index not found error from Elasticsearch. ' +
'The index doesnt exist for a newly created ES.')
# return empty list on exception
return []
......
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