Added console logging statement to response handling block

This commit is contained in:
Joseph Curtin 2016-11-24 13:16:16 +09:00
parent fc19f2ea34
commit 7bc2bbd8c0

View File

@ -202,6 +202,8 @@ class Sanic:
response = self.error_handler.response(request, e)
if isawaitable(response):
response = await response
log.exception(e)
except Exception as e:
if self.debug:
response = HTTPResponse(