Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
a38cacc1
Commit
a38cacc1
authored
Sep 22, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusted debugging info
parent
220c35b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
src/ZEO/tests/testConnection.py
src/ZEO/tests/testConnection.py
+12
-8
No files found.
src/ZEO/tests/testConnection.py
View file @
a38cacc1
...
...
@@ -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
... if bad:
... print open('server-%s.log' % addr[1]).read()
... print 'client debug log', handler
... for record in handler.records:
... 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()
... else:
... logging.getLogger('ZEO').debug('GOOD %s' % c)
... db.close()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment