From 73c82415aab1a3d0f3829cd3363a4adb63f8eae0 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 7 Sep 2017 02:46:58 +0530 Subject: [PATCH] Log the FD for I/O to avoid expose swaparoos Wasted some time tracking down swapped stdin/stdout. --- econtext/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/econtext/core.py b/econtext/core.py index 8a32a7d3..50974ca9 100644 --- a/econtext/core.py +++ b/econtext/core.py @@ -915,11 +915,11 @@ class Broker(object): rsides, wsides, _ = select.select(self._readers, self._writers, (), timeout) for side in rsides: - IOLOG.debug('%r: POLLIN for %r', self, side.stream) + IOLOG.debug('%r: POLLIN for %r', self, side) self._call(side.stream, side.stream.on_receive) for side in wsides: - IOLOG.debug('%r: POLLOUT for %r', self, side.stream) + IOLOG.debug('%r: POLLOUT for %r', self, side) self._call(side.stream, side.stream.on_transmit) def keep_alive(self):