Added console logging statement to response handling block
This commit is contained in:
parent
fc19f2ea34
commit
7bc2bbd8c0
|
@ -202,6 +202,8 @@ class Sanic:
|
||||||
response = self.error_handler.response(request, e)
|
response = self.error_handler.response(request, e)
|
||||||
if isawaitable(response):
|
if isawaitable(response):
|
||||||
response = await response
|
response = await response
|
||||||
|
|
||||||
|
log.exception(e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if self.debug:
|
if self.debug:
|
||||||
response = HTTPResponse(
|
response = HTTPResponse(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user