Silence CPY copyright rule; make format_access_log tail args keyword-only
Newer ruff flagged CPY001 across the codebase (copyright notices are not wanted here, rule disabled) and PLR0917 on format_access_log. duration_ms and extra are now keyword-only at the single call site.
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ async def log_access(req, res):
|
||||
path = f"{path}?{qs}"
|
||||
extra = getattr(req.ctx, "log_extra", None)
|
||||
line = format_access_log(
|
||||
client, res.status, req.method, host, path, duration_ms, extra=extra
|
||||
client, res.status, req.method, host, path, duration_ms=duration_ms, extra=extra
|
||||
)
|
||||
access_logger.info(line)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user