Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
a6b17807
Commit
a6b17807
authored
Sep 17, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in the debug logging.
parent
63eb9350
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
src/ZEO/tests/testConnection.py
src/ZEO/tests/testConnection.py
+6
-15
No files found.
src/ZEO/tests/testConnection.py
View file @
a6b17807
...
...
@@ -170,7 +170,7 @@ This tests tries to provoke this bug by:
constantly,
>>> import zope.testing.loggingsupport, logging
>>>
debug
handler = zope.testing.loggingsupport.InstalledHandler(
>>> handler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.DEBUG)
>>> import random, threading, time
...
...
@@ -199,9 +199,6 @@ This tests tries to provoke this bug by:
- restarting the first client, and
- testing for cache validity.
>>> handler = zope.testing.loggingsupport.InstalledHandler(
... 'ZEO', level=logging.ERROR)
>>> bad = False
>>> try:
... for c in range(10):
...
...
@@ -223,10 +220,10 @@ This tests tries to provoke this bug by:
... bad = True
... if bad:
... print open('server-%s.log' % addr[1]).read()
... print 'client debug log'
... for record in
debug
handler.records:
... print 'client debug log'
, handler
... for record in handler.records:
... print record.name, record.levelname
... print
debug
handler.format(record)
... print handler.format(record)
... else:
... logging.getLogger('ZEO').debug('GOOD %s' % c)
... db.close()
...
...
@@ -234,18 +231,12 @@ This tests tries to provoke this bug by:
... stop = True
... thread.join(10)
>>> 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.uninstall()
>>> thread.isAlive()
False
>>> for record in handler.records:
... if record.levelno < logging.ERROR:
... continue
... print record.name, record.levelname
... print handler.format(record)
...
...
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