Skip to content

Conversation

@lucagiove
Copy link
Member

@lucagiove lucagiove commented May 16, 2022

Basically if you reduce log level truncate will automatically match and the len() method is not executed saving cpu time.

Should solve in a different way #332

It should partially fix #355 at least allow a workaround to skip the test for log level higher than DEBUG.

@lucagiove lucagiove changed the title not execute expensive len if log level matches Partial Fix #339 not execute expensive len if log level matches May 16, 2022
@lucagiove lucagiove changed the title Partial Fix #339 not execute expensive len if log level matches Fixes #339 not execute expensive len if log level matches May 16, 2022
@lucagiove lucagiove merged commit a2cf43b into master May 16, 2022
@lucagiove lucagiove deleted the high_cpu_and_memory_consumption_due_to_logging branch May 16, 2022 23:31
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.

2 participants