diff --git a/sanic/server.py b/sanic/server.py index 8f67901d..e151c54f 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -301,7 +301,7 @@ class HttpProtocol(asyncio.Protocol): # Responding # -------------------------------------------- # def log_response(self, response): - if self.has_log: + if self.access_log: extra = { 'status': getattr(response, 'status', 0), }