Commit a38cacc1 authored by Jim Fulton's avatar Jim Fulton

adjusted debugging info

parent 220c35b3
......@@ -162,6 +162,13 @@ This tests tries to provoke this bug by:
... conn.root()[i] = ZODB.tests.MinPO.MinPO(0)
>>> transaction.commit()
>>> import zope.testing.loggingsupport, logging
>>> handler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.DEBUG)
>>> logging.getLogger('ZEO').debug(
... 'Initial tid %s' % conn.root()._p_serial)
- disconnecting the first client (closing it with a persistent cache),
>>> db.close()
......@@ -169,10 +176,6 @@ This tests tries to provoke this bug by:
- starting a second client that writes objects more or less
constantly,
>>> import zope.testing.loggingsupport, logging
>>> handler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.DEBUG)
>>> import random, threading, time
>>> stop = False
>>> db2 = ZEO.DB(addr)
......@@ -218,12 +221,13 @@ This tests tries to provoke this bug by:
... print 'bad', c, i, conn.root()[i].value,
... print conn2.root()[i].value
... bad = True
... print 'client debug log'
... while handler.records:
... record = handler.records.pop(0)
... print record.name, record.levelname
... print handler.format(record)
... if bad:
... print open('server-%s.log' % addr[1]).read()
... print 'client debug log', handler
... for record in handler.records:
... print record.name, record.levelname
... print handler.format(record)
... else:
... logging.getLogger('ZEO').debug('GOOD %s' % c)
... db.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment