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(