only print information about cache hits if debugging is on

This commit is contained in:
Florian Larysch 2015-11-12 00:54:26 +01:00
parent 4c0a2e0748
commit 925c0b31f4

View file

@ -96,7 +96,8 @@ def rendertask(task):
frame = tuple(frame)
if frame in cache:
print("cache hit, reusing frame {0}".format(cache[frame]))
if debug:
print("cache hit, reusing frame {0}".format(cache[frame]))
framedir = task.workdir + "/.frames/"
shutil.copyfile("{0}/{1:04d}.png".format(framedir, cache[frame]), "{0}/{1:04d}.png".format(framedir, frameNr))