This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michaeltsai
Recipients
Date 2006-04-14.15:48:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I have a logger that prints out %(filename)s:%(lineno)d along with the 
message. Instead of printing the file and line in my code where I call the 
logger, it prints out a location in logging/__init__.py.

I was able to fix this, at least for my purposes, by changing 
logging.currentframe from sys._getframe to lambda:sys._getframe(3).
History
Date User Action Args
2007-08-23 14:39:25adminlinkissue1470422 messages
2007-08-23 14:39:25admincreate