[PATCH 05/13] Make fdrreactors printout readable.

Matthew W. S. Bell matthew at bells23.org.uk
Sat Apr 25 18:18:30 UTC 2009


From: Matthew W. S. Bell <mentor at engelbert.(none)>

Just print each item on a newline; a better implementation would be welcome

Signed-off-by: Matthew W. S. Bell <matthew at bells23.org.uk>
---
 src/netconf/core.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/netconf/core.py b/src/netconf/core.py
index 1643e6b..981f372 100644
--- a/src/netconf/core.py
+++ b/src/netconf/core.py
@@ -202,7 +202,10 @@ class Core(object, logger.Mixin):
                     time.sleep(0.5)
 
                 # block until the next IO event or a timeout
-                self._log.debug('fdrreactors now: %s' % self._fdrreactors)
+                s = 'fdrreactors now:\n'
+                for fd, reactor in self._fdrreactors.iteritems():
+                    s += '\t{%s: %s}\n' % (fd, reactor)
+                self._log.debug(s)
                 if timeout:
                     self._log.debug('timeout is %g' % timeout)
                     self._log.debug('timed callbacks now: %s'
-- 
1.6.2.4




More information about the netconf-devel mailing list