From 67a24e9d4e4b4eef75a513b36e4bddc1aad45d4a Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Wed, 21 Mar 2018 02:15:46 +0100 Subject: [PATCH] Provide debug log info when nodes are not indexed --- pillar/celery/search_index_tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pillar/celery/search_index_tasks.py b/pillar/celery/search_index_tasks.py index 633c8355..4760b823 100644 --- a/pillar/celery/search_index_tasks.py +++ b/pillar/celery/search_index_tasks.py @@ -73,9 +73,11 @@ def prepare_node_data(node_id: str, node: dict=None) -> dict: return {} if node['node_type'] not in INDEX_ALLOWED_NODE_TYPES: + log.debug('Node of type %s is not indexable by Pillar', node['node_type']) return {} # If a nodes does not have status published, do not index if node['properties'].get('status') != 'published': + log.debug('Node %s is does not have published status', node_id) return {} projects_collection = current_app.data.driver.db['projects']