[issue21912] Deferred logging may use outdated references

Jonas Diemer report at bugs.python.org
Thu Jul 3 15:26:11 CEST 2014


Jonas Diemer added the comment:

I see your point. 

The decision whether to log or not is actually made synchronously to the actual logging call, as far as I can tell (i.e. "if self.isEnabledFor..." is checked directly in debug()). So at this place, the formatting could already happen.
I don't see a reason to defer the formatting to the actual output of the messages (other than the current implementation of logging).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21912>
_______________________________________


More information about the Python-bugs-list mailing list