mirror of
https://github.com/django/daphne.git
synced 2025-07-12 08:52:18 +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(
|
formatter = logging.Formatter(
|
||||||
'%(host)s %(ident)s %(user)s [%(asctime)s] "%(message)s" '
|
'%(host)s %(ident)s %(user)s [%(asctime)s] "%(message)s" '
|
||||||
"%(status)s %(length)s",
|
"%(status)s %(length)s",
|
||||||
"%d/%b/%Y:%H:%M:%S"
|
"%d/%b/%Y:%H:%M:%S",
|
||||||
)
|
)
|
||||||
handler.setFormatter(fmt=formatter)
|
handler.setFormatter(fmt=formatter)
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
|
|
||||||
|
|
||||||
def __call__(self, protocol, action, details):
|
def __call__(self, protocol, action, details):
|
||||||
"""
|
"""
|
||||||
Called when an action happens; use it to generate log entries.
|
Called when an action happens; use it to generate log entries.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user