Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

Your basic fix looks fine, but there's a couple of other issues to consider:

1. Users can use _srcFile = None to avoid calling findCaller() altogether, so I 
can't do away with the _srcFile altogether as it may cause some issues with 
existing code.

2. If using e.g. a LoggerAdapter derived class, there needs to be some way in 
which you can skip (in addition to the logging package itself) other 
user-defined modules until you get to the appropriate stack frame.

I'm thinking about these, but if you have any ideas about these, I'm listening 
:-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9948>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to