From 96242cfb1f65aa406b5f720478cae2046d7c13b5 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 8 Sep 2020 00:42:37 -0400 Subject: Better error logging --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9b0d88b..6191fbc 100755 --- a/main.py +++ b/main.py @@ -105,5 +105,6 @@ if __name__ == "__main__": else: jobManager.mark_jobs_ran_with_error() except Exception as e: - logging.critical("Caught an exception trying to execute jobs:" + str(e)) + logging.critical("Caught an exception trying to execute jobs:" + repr(e)) + logging.critical(logging.traceback.format_exc()) jobManager.mark_jobs_ran_with_error() -- cgit v1.2.3