Jaap van der Velde added the comment:

Breaking the API isn't good, but it will only break if log_message doesn't 
*receive* all messages, because that's what people who override it count on.

If there's some way of detecting who called log_message, you could use the 
appropriate log level on logging without compromising the API. But the only way 
I see without changing the signature of log_message is through inspect 
functions like getouterframes and that seems way nastier than these functions 
merit...

----------

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

Reply via email to