Fallback code corrupts the output
Bug #859545 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-oops-twisted |
Fix Released
|
High
|
Robert Collins |
Bug Description
2011-09-26 11:36:06+0100 [Uninitialized] L o g g e d O O P S i d O O P S - 2 0 9 5 L O N G P O L L 2 : C o n n e c t i o n R e f u s e d E r r o r : C o n n e c t i o n w a s r e f u s e d b y o t h e r s i d e : 1 1 1 : C o n n e c t i o n r e f u s e d .
There's extra spaces in there.
Related branches
lp:~lifeless/python-oops-twisted/defensive-and-logs
- Robert Collins (community): Approve
-
Diff: 108 lines (+50/-5)5 files modifiedNEWS (+12/-0)
oops_twisted/__init__.py (+1/-1)
oops_twisted/log.py (+3/-2)
oops_twisted/tests/test_log.py (+33/-1)
setup.py (+1/-1)
Changed in python-oops-twisted: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in python-oops-twisted: | |
assignee: | nobody → Robert Collins (lifeless) |
Changed in python-oops-twisted: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Thats bizarre - we have a test (test_failure_ fallback) that checks that there are not.
> /home/robertc/ source/ launchpad/oops-twisted/working/ oops_twisted/ tests/test_ log.py( 126)test_ failure_ fallback( ) message) , repr(expected_ message)
-> expected_event = {
(Pdb) print expected_message
Logged OOPS id 33: ValueError: exception message
(Pdb) print type(expected_
<type 'unicode'> u'Logged OOPS id 33: ValueError: exception message'
(Pdb)
Are you able to reproduce at will ? If so, can you put a breakpoint in log.py where it creates event['message'] and have a poke at what is happening?
I'm inclined to suspect something ffffunky in twisted's failure object.