bpo-37035: Don't log OSError (GH-13548)

https://bugs.python.org/issue37035
This commit is contained in:
Andrew Svetlov 2019-05-27 16:28:34 +03:00 committed by Miss Islington (bot)
parent ff6b2e66b1
commit 1f39c28e48
8 changed files with 35 additions and 18 deletions

View file

@ -724,7 +724,7 @@ class _UnixWritePipeTransport(transports._FlowControlMixin,
def _fatal_error(self, exc, message='Fatal error on pipe transport'):
# should be called by exception handler only
if isinstance(exc, base_events._FATAL_ERROR_IGNORE):
if isinstance(exc, OSError):
if self._loop.get_debug():
logger.debug("%r: %s", self, message, exc_info=True)
else: