From d501260ef95d2a798e7047d02a9991b06ad92036 Mon Sep 17 00:00:00 2001 From: computergeek125 Date: Sat, 3 Apr 2021 13:29:10 -0500 Subject: [PATCH] Updated error info per CRAFTY-CONTROLLER-T-57 --- app/classes/shared/cmd.py | 4 ++-- app/classes/shared/helpers.py | 4 ++-- app/classes/shared/tasks.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/classes/shared/cmd.py b/app/classes/shared/cmd.py index 80a1b08b..7d2428b1 100644 --- a/app/classes/shared/cmd.py +++ b/app/classes/shared/cmd.py @@ -15,8 +15,8 @@ try: import requests except ModuleNotFoundError as e: - logger.critical("Import Error: Unable to load {} module".format(e, e.name)) - console.critical("Import Error: Unable to load {} module".format(e, e.name)) + logger.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) + console.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) sys.exit(1) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index e1517084..1610869f 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -27,8 +27,8 @@ try: from argon2 import PasswordHasher except ModuleNotFoundError as e: - logger.critical("Import Error: Unable to load {} module".format(e, e.name)) - console.critical("Import Error: Unable to load {} module".format(e, e.name)) + logger.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) + console.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) sys.exit(1) class Helpers: diff --git a/app/classes/shared/tasks.py b/app/classes/shared/tasks.py index 86717824..bc572379 100644 --- a/app/classes/shared/tasks.py +++ b/app/classes/shared/tasks.py @@ -20,8 +20,8 @@ try: import schedule except ModuleNotFoundError as e: - logger.critical("Import Error: Unable to load {} module".format(e, e.name)) - console.critical("Import Error: Unable to load {} module".format(e, e.name)) + logger.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) + console.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) sys.exit(1) scheduler_intervals = { 'seconds',