mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Removing spammy debug logging
This commit is contained in:
parent
e3a8044a38
commit
43f3e7504c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user