mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +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)
|
||||
return im
|
||||
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
|
||||
|
||||
im = _open_core(fp, filename, prefix)
|
||||
|
|
Loading…
Reference in New Issue
Block a user