Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make log formatting lazy (logging-fstring-interpolation) #2

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Jun 15, 2022

The loggers were stringifying the protobuf structures (which turned out to be a bit expensive) and then throwing them away unless debug logging was turned on.

Noticed while looking for a different performance issue
Screen Shot 2022-06-14 at 13 53 01

https://pylint.pycqa.org/en/latest/user_guide/messages/warning/logging-fstring-interpolation.html

@jfroy jfroy merged commit 58d4d14 into jfroy:main Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants