SVN: ZODB/trunk/src/ZEO/tests/testConnection.py Add/adjust debugging info.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.