mirror of
https://github.com/django/daphne.git
synced 2025-03-12 11:25:46 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
eb820e3fed
commit
8cb79b4217
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user