Merge pull request #1423 from wiredfool/debug-logging

Removing spammy debug logging
This commit is contained in:
wiredfool 2015-09-20 10:32:47 +01:00
commit 2350eaad17
2 changed files with 7 additions and 3 deletions

View File

@ -2309,7 +2309,10 @@ def open(fp, mode="r"):
_decompression_bomb_check(im.size) _decompression_bomb_check(im.size)
return im return im
except (SyntaxError, IndexError, TypeError, struct.error): except (SyntaxError, IndexError, TypeError, struct.error):
logger.debug("", exc_info=True) # Leave disabled by default, spams the logs with image
# opening failures that are entirely expected.
#logger.debug("", exc_info=True)
continue
return None return None
im = _open_core(fp, filename, prefix) im = _open_core(fp, filename, prefix)

View File

@ -54,7 +54,9 @@ class PyAccess(object):
self.xsize = vals['xsize'] self.xsize = vals['xsize']
self.ysize = vals['ysize'] self.ysize = vals['ysize']
logger.debug("%s", vals) # Debugging is polluting test traces, only useful here
# when hacking on PyAccess
#logger.debug("%s", vals)
self._post_init() self._post_init()
def _post_init(self): def _post_init(self):
@ -310,7 +312,6 @@ def new(img, readonly=False):
if not access_type: if not access_type:
logger.debug("PyAccess Not Implemented: %s", img.mode) logger.debug("PyAccess Not Implemented: %s", img.mode)
return None return None
logger.debug("New PyAccess: %s", img.mode)
return access_type(img, readonly) return access_type(img, readonly)
# End of file # End of file