Delay string interpolations at logging calls

This is a general best practise which brings (slight) performance
improvements and also structured logging.

Enable the hacking check to enforce it.

Change-Id: Ie2e7a5c4056cbdc5ea5ad24972d818749d739f15
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-05 22:39:08 +09:00
parent 9e99860efb
commit 4e46175617

View File

@@ -29,3 +29,5 @@ commands = {posargs}
[flake8]
exclude = .venv,.tox,dist,doc,*.egg
show-source = true
# H904: Delay string interpolations at logging calls
enable-extensions = H904