0

Use logging instead of print statement

This commit is contained in:
Ryan McCue
2010-12-11 21:31:20 +10:00
parent dff4f4aea8
commit b7f4855ec6

View File

@@ -306,9 +306,9 @@ class ChunkRenderer(object):
oldimg = oldimg_path = None oldimg = oldimg_path = None
key = ".".join((self.dirbits[0], self.dirbits[1], self.blockid, "cave" if cave else "nocave")) key = ".".join((self.dirbits[0], self.dirbits[1], self.blockid, "cave" if cave else "nocave"))
if key in self.world.cached: if key in self.world.cached:
print "Found cached image {0}".format(key)
oldimg_path = self.world.cached[key] oldimg_path = self.world.cached[key]
_, oldimg = os.path.split(oldimg_path) _, oldimg = os.path.split(oldimg_path)
logging.debug("Found cached image {0}".format(oldimg))
return oldimg, oldimg_path return oldimg, oldimg_path
def render_and_save(self, cave=False): def render_and_save(self, cave=False):