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 vinay.sajip
Recipients Jonas.Diemer, r.david.murray, vinay.sajip
Date 2014-07-03.14:20:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404397252.62.0.369065170931.issue21912@psf.upfronthosting.co.za>
In-reply-to
Content
> I don't see a reason to defer the formatting to the actual output of the messages (other than the current implementation of logging).

The current implementation of logging is like that for a reason, even though you may not see it - it defers doing work until it is needed (which improves throughput). This idiom is hardly uncommon.

If you don't want to delay formatting until output, you can always do

logger.debug("My object: %s" % myObject)
History
Date User Action Args
2014-07-03 14:20:52vinay.sajipsetrecipients: + vinay.sajip, r.david.murray, Jonas.Diemer
2014-07-03 14:20:52vinay.sajipsetmessageid: <1404397252.62.0.369065170931.issue21912@psf.upfronthosting.co.za>
2014-07-03 14:20:52vinay.sajiplinkissue21912 messages
2014-07-03 14:20:52vinay.sajipcreate