[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testConnection.py Add/adjust debugging info.

Jim Fulton jim at zope.com
Sun Sep 12 07:56:53 EDT 2010


Log message for revision 116303:
  Add/adjust debugging info.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/testConnection.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/testConnection.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testConnection.py	2010-09-12 11:56:47 UTC (rev 116302)
+++ ZODB/trunk/src/ZEO/tests/testConnection.py	2010-09-12 11:56:52 UTC (rev 116303)
@@ -217,6 +217,13 @@
     ...                    print 'bad', c, i, conn.root()[i].value,
     ...                    print  conn2.root()[i].value
     ...                    bad = True
+    ...        if bad:
+    ...           print open('server-%s.log' % addr[1]).read()
+    ...           print 'client debug log'
+    ...           for record in debughandler.records:
+    ...               print record.name, record.levelname
+    ...               print debughandler.format(record)
+    ...           debughandler.clear()
     ...        db.close()
     ... finally:
     ...     stop = True



More information about the Zodb-checkins mailing list