[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-01-06 02:50:32 +00:00
parent eb820e3fed
commit 8cb79b4217

View File

@ -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.