Update server.py
This commit is contained in:
parent
8ce749e339
commit
4b877e3f6b
|
@ -301,7 +301,7 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
# Responding
|
# Responding
|
||||||
# -------------------------------------------- #
|
# -------------------------------------------- #
|
||||||
def log_response(self, response):
|
def log_response(self, response):
|
||||||
if self.has_log:
|
if self.access_log:
|
||||||
extra = {
|
extra = {
|
||||||
'status': getattr(response, 'status', 0),
|
'status': getattr(response, 'status', 0),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user