From 7bc2bbd8c0065cc7fd14d3c2f0fa738a86a6ee4a Mon Sep 17 00:00:00 2001 From: Joseph Curtin Date: Thu, 24 Nov 2016 13:16:16 +0900 Subject: [PATCH] Added console logging statement to response handling block --- sanic/sanic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanic/sanic.py b/sanic/sanic.py index af284c00..4dbf6cf7 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -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(