forked from cardosofelipe/pragma-stack
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user