[Zope-Checkins] CVS: Zope/lib/python/ZLogger - stupidFileLogger.py:1.10
Shane Hathaway
shane@cvs.zope.org
Wed, 3 Apr 2002 15:44:29 -0500
Update of /cvs-repository/Zope/lib/python/ZLogger
In directory cvs.zope.org:/tmp/cvs-serv3170/lib/python/ZLogger
Modified Files:
stupidFileLogger.py
Log Message:
Merged shane-better-tracebacks-branch. The changes are explained in http://dev.zope.org/Wikis/DevSite/Proposals/BetterTracebacks
=== Zope/lib/python/ZLogger/stupidFileLogger.py 1.9 => 1.10 ===
if error:
try:
- _stupid_dest.write(format_exception(
+ _stupid_dest.write(''.join(format_exception(
error[0], error[1], error[2],
- trailer='\n', limit=100))
+ limit=100)))
except:
_stupid_dest.write("%s: %s\n" % error[:2])
_stupid_dest.flush()