diff --git a/web.py b/web.py index 813c9b2..6d9e48f 100644 --- a/web.py +++ b/web.py @@ -1,6 +1,7 @@ import os from importlib import import_module import builtins +import traceback import flask from rdflib.namespace import Namespace @@ -30,7 +31,7 @@ module_path = 'ext.app.{}'.format(app_file) import_module(module_path) except Exception as e: - helpers.log(str(e)) + helpers.log(''.join(traceback.format_exception(None, e, e.__traceback__))) ####################### ## Start Application ##