From 9dc9db5a9ffa11fdb5cef983bd13c47127836df5 2016-08-22 16:40:31 From: Marcin Lulek Date: 2016-08-22 16:40:31 Subject: [PATCH] logs: better log message --- diff --git a/backend/src/appenlight/celery/tasks.py b/backend/src/appenlight/celery/tasks.py index 22e712a..10f073b 100644 --- a/backend/src/appenlight/celery/tasks.py +++ b/backend/src/appenlight/celery/tasks.py @@ -297,7 +297,8 @@ def add_logs(resource_id, request, dataset, environ=None, **kwargs): Datastores.es.delete_by_query( es_index, 'log', query) except pyelasticsearch.ElasticHttpNotFoundError as exc: - log.error(exc) + msg = 'skipping index {}'.format(es_index) + log.info(msg) total_logs = len(dataset)