Author: dmeyer
Date: Fri Oct 27 13:50:00 2006
New Revision: 1930
Modified:
trunk/base/src/logger.py
Log:
make logger work with python 2.5 (without testing)
Modified: trunk/base/src/logger.py
==============================================================================
--- trunk/base/src/logger.py (original)
+++ trunk/base/src/logger.py Fri Oct 27 13:50:00 2006
@@ -59,7 +59,7 @@
log.addHandler(handler)
-def make_record(self, name, level, fn, lno, msg, args, exc_info):
+def make_record(self, name, level, fn, lno, msg, args, *_args, **_kwargs):
"""
A special makeRecord class for the logger to convert msg and args into
strings using the correct encoding if they are unicode strings. This
@@ -74,7 +74,7 @@
# convert args to string
args = tuple([ unicode_to_str(x) for x in args ])
# call original LogRecord function
- return logging.LogRecord(name, level, fn, lno, msg, args, exc_info)
+ return logging.LogRecord(name, level, fn, lno, msg, args, *_args,
**_kwargs)
# override makeRecord of a logger by our new function that can handle
# unicode correctly and that will take care of a basic logger.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog