From b233a7cac73d0c66b988ac62adfccf4ccb26141d Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 22 Sep 2023 17:28:42 +0200 Subject: [PATCH] Log startup errors with a full stack trace --- web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.py b/web.py index 813c9b2..905cb2c 100644 --- a/web.py +++ b/web.py @@ -29,8 +29,8 @@ try: module_path = 'ext.app.{}'.format(app_file) import_module(module_path) -except Exception as e: - helpers.log(str(e)) +except Exception: + helpers.logger.exception('Exception raised when importing app code') ####################### ## Start Application ##