On Fri, Jan 19, 2007 at 11:10:49AM +0000, Steve Kemp wrote:
> Does this look like a bug, or user-error?
Mats Petersson gave me a pointer to fix this problem, editing
/usr/lib/python2.4/logging/__init__.py with the context diff
below.
(Debian Sid, AMD64.)
This allows things to work, but probably indicates a bug
somewhere...
Steve
--
Debian GNU/Linux System Administration
http://www.debian-administration.org/
--- __init__.py-orig 2007-01-20 20:44:29.000000000 +0000
+++ __init__.py 2007-01-20 20:44:11.000000000 +0000
@@ -1068,10 +1068,11 @@
Low-level logging routine which creates a LogRecord and then calls
all the handlers of this logger to handle the record.
"""
- if _srcfile:
- fn, lno, func = self.findCaller()
- else:
- fn, lno, func = "(unknown file)", 0, "(unknown function)"
+ # if _srcfile:
+ # fn, lno, func = self.findCaller()
+ #else:
+ # fn, lno, func = "(unknown file)", 0, "(unknown function)"
+ fn,lno = "unknown",0
if exc_info:
if type(exc_info) != types.TupleType:
exc_info = sys.exc_info()
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|