News for hackers. Stuff that matters.
Re:Flake8-Logging by nbadg on Monday September 11, 2023 @04:35PM (#37473310)
Setting aside the performance argument, strictly adhering to this rule makes a big difference in 3rd-party tools like Sentry. If you pre-format log messages, the parameters don't get captured, and (at least in my experience) it sometimes shows up as a separate event entirely.

Having written a monkeypatch for the stdlib logging library at Hipmunk (RIP) for our GDPR effort, I can say: I have a lot of thoughts about ``logging``, and few of them are good. But it's definitely better than print statements!

Re:Flake8-Logging by nicbou on Monday September 11, 2023 @10:20PM (#37476347)
This is why we started doing it too. It allows grouping of related messages, even if the parameters and formatted string change.