From 8cb79b421701e949f255237c53da3a11970bb1d3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:50:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- daphne/access.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daphne/access.py b/daphne/access.py index 9f6122f..7e730ca 100644 --- a/daphne/access.py +++ b/daphne/access.py @@ -16,12 +16,11 @@ class AccessLogGenerator: formatter = logging.Formatter( '%(host)s %(ident)s %(user)s [%(asctime)s] "%(message)s" ' "%(status)s %(length)s", - "%d/%b/%Y:%H:%M:%S" + "%d/%b/%Y:%H:%M:%S", ) handler.setFormatter(fmt=formatter) logger.addHandler(handler) - def __call__(self, protocol, action, details): """ Called when an action happens; use it to generate log entries. @@ -65,8 +64,8 @@ class AccessLogGenerator: self, host, request, details, status=None, length=None, ident=None, user=None ): """ - Writes an access log. If a file is specified, an NCSA-style entry to the log file - (some liberty is taken with what the entries are for non-HTTP). The format can be + Writes an access log. If a file is specified, an NCSA-style entry to the log file + (some liberty is taken with what the entries are for non-HTTP). The format can be overriden with logging configuration for 'daphne.access' """