Message409499
I think there's definitely room for improvement here, and at face value I like the debugf() functions. __format__ style formatting solves a big problem for me: being able to provide format strings for timestamps.
One thing: I'd be careful about saying that delayed formatting is always a performance win. f-strings are so much faster, that if I'm reasonable sure a message is always going to get logged, I'll use an f-string. In my case, I never log any user-supplied data, although it's obviously a risk that should be warned against. |
|
Date |
User |
Action |
Args |
2022-01-02 15:21:49 | eric.smith | set | recipients:
+ eric.smith, vinay.sajip, docs@python, erlendaasland, ariebovenberg |
2022-01-02 15:21:49 | eric.smith | set | messageid: <1641136909.43.0.0570913162357.issue46200@roundup.psfhosted.org> |
2022-01-02 15:21:49 | eric.smith | link | issue46200 messages |
2022-01-02 15:21:49 | eric.smith | create | |
|