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:
parent
194073ee4b
commit
b3d1a4d0d6
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user