From 72d05dea7b3b59298be1900051db85b8a05cfc2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 1 Apr 2016 18:05:55 +0200 Subject: [PATCH] Some nicer logging --- pillar/application/modules/file_storage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pillar/application/modules/file_storage.py b/pillar/application/modules/file_storage.py index dd3ff396..4c2b94b1 100644 --- a/pillar/application/modules/file_storage.py +++ b/pillar/application/modules/file_storage.py @@ -430,7 +430,10 @@ def on_pre_get_files(_, lookup): def refresh_links_for_project(project_uuid, chunk_size, expiry_seconds): from application import app - log.info('Refreshing the first %i links for project %s', chunk_size, project_uuid) + if chunk_size: + log.info('Refreshing the first %i links for project %s', chunk_size, project_uuid) + else: + log.info('Refreshing all links for project %s', project_uuid) # Retrieve expired links. files_collection = app.data.driver.db['files']