From f7e1f2112e0ce991617b124bedb32d54a09c4ce5 Mon Sep 17 00:00:00 2001 From: Mark Bidewell Date: Sun, 23 Apr 2023 21:40:08 -0400 Subject: [PATCH] Linting and warning fixes --- daphne/access.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daphne/access.py b/daphne/access.py index 5aea5bb..8377ad5 100644 --- a/daphne/access.py +++ b/daphne/access.py @@ -1,4 +1,3 @@ -import datetime import logging logger = logging.getLogger(__name__) @@ -72,7 +71,9 @@ class AccessLogGenerator: """ logger.info( - f"{request} {details}", + "%s %s", + request, + details, extra={ "host": host, "request": request,