refactor(logging): switch to parameterized logging for improved performance and clarity

- Replaced f-strings with parameterized logging calls across routes, services, and repositories to optimize log message evaluation.
- Improved exception handling by using `logger.exception` where appropriate for automatic traceback logging.
This commit is contained in:
2026-03-01 13:38:15 +01:00
parent 57e969ed67
commit 0553a1fc53
24 changed files with 375 additions and 319 deletions

View File

@@ -148,8 +148,6 @@ ignore = [
"S607", # Starting a process with a partial path (safe usage)
"B008", # FastAPI Depends() in function defaults (required by framework)
"B904", # Exception chaining (overly strict for FastAPI error handlers)
"G004", # f-string logging (TODO: migrate existing 300+ occurrences to lazy %)
"G201", # .exception() vs .error(exc_info=True) (TODO: migrate existing 64 occurrences)
]
# Allow autofix for all enabled rules