aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/cache.py')
-rw-r--r--hypervideo_dl/cache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/hypervideo_dl/cache.py b/hypervideo_dl/cache.py
index 81cd297..24acb1b 100644
--- a/hypervideo_dl/cache.py
+++ b/hypervideo_dl/cache.py
@@ -50,6 +50,7 @@ class Cache(object):
except OSError as ose:
if ose.errno != errno.EEXIST:
raise
+ self._ydl.write_debug(f'Saving {section}.{key} to cache')
write_json_file(data, fn)
except Exception:
tb = traceback.format_exc()
@@ -66,6 +67,7 @@ class Cache(object):
try:
try:
with io.open(cache_fn, 'r', encoding='utf-8') as cachef:
+ self._ydl.write_debug(f'Loading {section}.{key} from cache')
return json.load(cachef)
except ValueError:
try: