Message222185
| 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:52 | vinay.sajip | set | recipients:
+ vinay.sajip, r.david.murray, Jonas.Diemer |
| 2014年07月03日 14:20:52 | vinay.sajip | set | messageid: <1404397252.62.0.369065170931.issue21912@psf.upfronthosting.co.za> |
| 2014年07月03日 14:20:52 | vinay.sajip | link | issue21912 messages |
| 2014年07月03日 14:20:52 | vinay.sajip | create |
|