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
there was some discussion about using f-strings with the Python logger in the Voila repo, with could lead to potential performance issues: voila-dashboards/voila#419 (comment)
Maybe there is a way to configure ruff to not format the strings used with the logger, if we want to follow the recommendation of not interpolating the f-strings when it's not necessary?
Problem
there was some discussion about using f-strings with the Python logger in the Voila repo, with could lead to potential performance issues: voila-dashboards/voila#419 (comment)
Some more info here: https://realpython.com/python-f-strings/#lazy-evaluation-in-logging
Maybe there is a way to configure ruff to not format the strings used with the logger, if we want to follow the recommendation of not interpolating the f-strings when it's not necessary?
Originally posted by @jtpio in #16270 (comment)
Proposed Solution
Use lazy evaluation for logging by default
The text was updated successfully, but these errors were encountered: