Skip to content

Commit b233a7c

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
try:
3030
module_path = 'ext.app.{}'.format(app_file)
3131
import_module(module_path)
32-
except Exception as e:
33-
helpers.log(str(e))
32+
except Exception:
33+
helpers.logger.exception('Exception raised when importing app code')
3434

3535
#######################
3636
## Start Application ##

0 commit comments

Comments
 (0)