1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-09-28 01:13:30 +10:00

metadata: Pass through log argument

This commit is contained in:
Stuart Longland 2018-04-09 19:07:48 +10:00
parent bd68ec956d
commit 194073ee4b
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -66,8 +66,9 @@ class MetadataCache(Cache):
Store the metadata for lots of files and keep them cached.
"""
def __init__(self, fs_cache, cache_duration=300.0):
super(MetadataCache, self).__init__(cache_duration=cache_duration)
def __init__(self, fs_cache, cache_duration=300.0, log=None):
super(MetadataCache, self).__init__(cache_duration=cache_duration,
log=log)
self._fs_cache = fs_cache
def _fetch(self, filename):