diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-29 13:12:03 -0800 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-29 13:12:03 -0800 |
commit | 63b4d4b494d57c90461740d0700af15ae4420618 (patch) | |
tree | 7e3f3dfed66f55795f3286c30bbfe93480e3f882 /Lib/asyncio/unix_events.py | |
parent | 89ca85c7465020b181e7e8a6109fc893675fdf7b (diff) | |
download | cpython-git-63b4d4b494d57c90461740d0700af15ae4420618.tar.gz |
asyncio: _fatal_error() of _UnixWritePipeTransport and _ProactorBasePipeTransport shouldn't log BrokenPipeError nor ConnectionResetError.
(Same behaviour as _SelectorTransport._fatal_error().)
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r-- | Lib/asyncio/unix_events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 219c88a0ff..a1aff3f146 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -363,7 +363,8 @@ class _UnixWritePipeTransport(transports.WriteTransport): def _fatal_error(self, exc): # should be called by exception handler only - logger.exception('Fatal error for %s', self) + if not isinstance(exc, (BrokenPipeError, ConnectionResetError)): + logger.exception('Fatal error for %s', self) self._close(exc) def _close(self, exc=None): |