From f6eab4878f6227ab32e162150800cd784365ad59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 8 Jul 2016 12:08:01 +0200 Subject: [PATCH] Log ensure_valid_link() stuff to separate logger. --- pillar/application/modules/file_storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pillar/application/modules/file_storage.py b/pillar/application/modules/file_storage.py index 7ba559ac..14aeccf8 100644 --- a/pillar/application/modules/file_storage.py +++ b/pillar/application/modules/file_storage.py @@ -335,6 +335,8 @@ def before_returning_files(response): def ensure_valid_link(response): """Ensures the file item has valid file links using generate_link(...).""" + # Log to function-specific logger, so we can easily turn it off. + log = logging.getLogger('%s.ensure_valid_link') # log.debug('Inspecting link for file %s', response['_id']) # Check link expiry.