From b70af6a0bea251256a08093076158b8af663d173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 29 Jul 2016 17:41:12 +0200 Subject: [PATCH] Little logging bugfix --- pillar/application/modules/file_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/application/modules/file_storage.py b/pillar/application/modules/file_storage.py index ead57663..2b95072c 100644 --- a/pillar/application/modules/file_storage.py +++ b/pillar/application/modules/file_storage.py @@ -346,7 +346,7 @@ 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 = logging.getLogger('%s.ensure_valid_link' % __name__) # log.debug('Inspecting link for file %s', response['_id']) # Check link expiry.