diff --git a/devserver/modules/exception.py b/devserver/modules/exception.py new file mode 100644 index 0000000..6b5ec3a --- /dev/null +++ b/devserver/modules/exception.py @@ -0,0 +1,11 @@ +from devserver.modules import DevServerModule + +class ExceptionModule(DevServerModule): + """ + Logs view exceptions. + """ + + logger_name = 'exception' + + def process_exception(self, request, exception): + self.logger.error(exception)