You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular f-string:
There are many reason not to use f-string in logs,
- F-strings are eager, so might be slow. So this may affect performance
(we can filter before formatting).
- prevent structured logging or handler to highlight.
- Security (untrusted input can lead to DOS on formatting, https://discuss.python.org/t/safer-logging-methods-for-f-strings-and-new-style-formatting/13802)
But also % formatting in a couple of places.
0 commit comments