From 194073ee4b7722a05a5f5af4ac62fc8c1f46f49d Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Mon, 9 Apr 2018 19:07:48 +1000 Subject: [PATCH] metadata: Pass through log argument --- tornado_gallery/metadata.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tornado_gallery/metadata.py b/tornado_gallery/metadata.py index bb4eba5..8e9b2b5 100644 --- a/tornado_gallery/metadata.py +++ b/tornado_gallery/metadata.py @@ -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):