Update server.py

This commit is contained in:
Piotr Buliński 2017-10-05 09:28:13 +02:00 committed by GitHub
parent 8ce749e339
commit 4b877e3f6b

View File

@ -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),
} }