[Zope3-checkins]
SVN: Zope3/trunk/src/zope/testing/loggingsupport.py
use LogRecord.getMessage() instead of LogRecord.message,
since it is always
Fred L. Drake, Jr.
fred at zope.com
Tue May 18 14:45:07 EDT 2004
Log message for revision 24809:
use LogRecord.getMessage() instead of LogRecord.message, since it is always
available
-=-
Modified: Zope3/trunk/src/zope/testing/loggingsupport.py
===================================================================
--- Zope3/trunk/src/zope/testing/loggingsupport.py 2004-05-18 18:43:46 UTC (rev 24808)
+++ Zope3/trunk/src/zope/testing/loggingsupport.py 2004-05-18 18:45:05 UTC (rev 24809)
@@ -31,7 +31,7 @@
>>> for record in handler.records:
... print record.name, record.levelname
- ... print ' ', record.message
+ ... print ' ', record.getMessage()
foo.bar ERROR
eek
foo.bar INFO
@@ -106,7 +106,7 @@
[("%s %s\n %s" %
(record.name, record.levelname,
'\n'.join([line
- for line in record.message.split('\n')
+ for line in record.getMessage().split('\n')
if line.strip()])
)
)
More information about the Zope3-Checkins
mailing list