Unverified Commit 8df12d0a authored by jornh's avatar jornh Committed by GitHub

Clarify ES publisher warning on first run (#230)

parent 69bf5b77
...@@ -150,8 +150,8 @@ class ElasticsearchPublisher(Publisher): ...@@ -150,8 +150,8 @@ class ElasticsearchPublisher(Publisher):
indices = self.elasticsearch_client.indices.get_alias(self.elasticsearch_alias).keys() indices = self.elasticsearch_client.indices.get_alias(self.elasticsearch_alias).keys()
return indices return indices
except NotFoundError: except NotFoundError:
LOGGER.warn('Received index not found error from Elasticsearch. ' + LOGGER.warn("Received index not found error from Elasticsearch. " +
'The index doesnt exist for a newly created ES.') "The index doesn't exist for a newly created ES. It's OK on first run.")
# return empty list on exception # return empty list on exception
return [] 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