1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-10-25 14:57:51 +10:00

gallery: Initialise logger

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

View File

@ -26,6 +26,9 @@ class GalleryCollection(Cache):
def __init__(self, root_dir, cache_subdir=CACHE_DIR_NAME,
num_proc=None, cache_expiry=300.0,
cache_stat_expiry=1.0, log=None):
if log is None:
log = logging.getLogger(self.__class__.__module__)
super(GalleryCollection, self).__init__(
cache_duration=cache_expiry, log=log)
self._fs_cache = CacheFs(cache_expiry, cache_stat_expiry)