diff --git a/cista/app.py b/cista/app.py index d7c52ae..0cd6c2a 100644 --- a/cista/app.py +++ b/cista/app.py @@ -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 diff --git a/cista/sanic_logging.py b/cista/sanic_logging.py index 68adc9d..bdcbad8 100644 --- a/cista/sanic_logging.py +++ b/cista/sanic_logging.py @@ -156,6 +156,7 @@ def format_access_log( method: str, host: str, path: str, + *, duration_ms: float, extra: str | None = None, ) -> str: diff --git a/pyproject.toml b/pyproject.toml index 241a5fe..4b75858 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -132,6 +132,7 @@ ignore = [ "ANN205", # legacy codebase: no full runtime annotation coverage yet "BLE001", # broad catch remains in boundary/proxy/error-handling paths "C901", # legacy complexity; keep other correctness rules enabled + "CPY", # copyright notices not wanted in this codebase "D100", # legacy docs not yet standardized "D101", # legacy docs not yet standardized "D102", # legacy docs not yet standardized