From e76c58b6a5eb66b935d0d1a4de00f8f10338132e 2011-07-15 18:02:36 From: MinRK Date: 2011-07-15 18:02:36 Subject: [PATCH] remove module-level logger in zmq.iostream This could cause infinite recursion of sys.stderr logging debug messages to sys.stderr. --- diff --git a/IPython/zmq/iostream.py b/IPython/zmq/iostream.py index 66d0ea9..a65bb8d 100644 --- a/IPython/zmq/iostream.py +++ b/IPython/zmq/iostream.py @@ -1,4 +1,3 @@ -import logging import sys import time from io import StringIO @@ -11,9 +10,6 @@ from IPython.utils import io # Globals #----------------------------------------------------------------------------- -# Module-level logger -logger = logging.getLogger(__name__) - #----------------------------------------------------------------------------- # Stream classes #----------------------------------------------------------------------------- @@ -48,7 +44,6 @@ class OutStream(object): content = {u'name':self.name, u'data':data} msg = self.session.send(self.pub_socket, u'stream', content=content, parent=self.parent_header, ident=self.topic) - logger.debug(msg) self._buffer.close() self._new_buffer()