Merge pull request #745 from paulkermann/improv/log_filecache_usage

Log resource cache usage
This commit is contained in:
ikelos
2022-05-23 15:49:06 +01:00
committed by GitHub
@@ -171,6 +171,8 @@ class ResourceAccessor(object):
cache_file.write(block)
block = fp.read(block_size)
cache_file.close()
else:
vollog.debug(f"Using already cached file at: {temp_filename}")
# Re-open the cache with a different mode
# Since we don't want people thinking they're able to save to the cache file,
# open it in read mode only and allow breakages to happen if they wanted to write