Skip to content

Commit 59fc614

Browse files
committed
Log startup errors with a full stack trace
1 parent 39fe491 commit 59fc614

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from importlib import import_module
33
import builtins
4+
import traceback
45

56
import flask
67
from rdflib.namespace import Namespace
@@ -30,7 +31,7 @@
3031
module_path = 'ext.app.{}'.format(app_file)
3132
import_module(module_path)
3233
except Exception as e:
33-
helpers.log(str(e))
34+
helpers.log(''.join(traceback.format_exception(None, e, e.__traceback__)))
3435

3536
#######################
3637
## Start Application ##

0 commit comments

Comments
 (0)