summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distbuild/sockbuf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/distbuild/sockbuf.py b/distbuild/sockbuf.py
index 346706db..c2cc8e2a 100644
--- a/distbuild/sockbuf.py
+++ b/distbuild/sockbuf.py
@@ -133,6 +133,8 @@ class SocketBuffer(StateMachine):
try:
data = event.sock.read(self._max_buffer)
except (IOError, OSError), e:
+ logging.debug(
+ '%s: _fill(): Exception %s from sock.read()', self, e)
return [SocketError(event.sock, e)]
if data:
@@ -151,6 +153,8 @@ class SocketBuffer(StateMachine):
try:
n = event.sock.write(data)
except (IOError, OSError), e:
+ logging.debug(
+ '%s: _flush(): Exception %s from sock.write()', self, e)
return [SocketError(event.sock, e)]
self._wbuf.remove(n)
if len(self._wbuf) == 0: