Log ensure_valid_link() stuff to separate logger.
This commit is contained in:
parent
896e2bc147
commit
f6eab4878f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user