mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fixed output of content_length in access log.
This commit is contained in:
parent
52c057b92f
commit
238f252a3a
@ -164,7 +164,7 @@ class Logger(object):
|
|||||||
'r': "%s %s %s" % (environ['REQUEST_METHOD'],
|
'r': "%s %s %s" % (environ['REQUEST_METHOD'],
|
||||||
environ['RAW_URI'], environ["SERVER_PROTOCOL"]),
|
environ['RAW_URI'], environ["SERVER_PROTOCOL"]),
|
||||||
's': status,
|
's': status,
|
||||||
'b': str(resp.response_length) or '-',
|
'b': resp.response_length and str(resp.response_length) or '-',
|
||||||
'f': environ.get('HTTP_REFERER', '-'),
|
'f': environ.get('HTTP_REFERER', '-'),
|
||||||
'a': environ.get('HTTP_USER_AGENT', '-'),
|
'a': environ.get('HTTP_USER_AGENT', '-'),
|
||||||
'T': str(request_time.seconds),
|
'T': str(request_time.seconds),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user