diff options
author | Tom Ritter <tom@ritter.vg> | 2020-09-08 13:35:45 -0400 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2020-09-08 13:35:45 -0400 |
commit | 9e24dfeaabd1c4daddb96c9c143f60cfa3374bf2 (patch) | |
tree | 68fcad74f1ff25df8d10251b9a278523b8cedf06 /jobs/__init__.py | |
parent | 625f942d60c2f524f389f945a4e4743e57b9393e (diff) |
Better error logging
Diffstat (limited to 'jobs/__init__.py')
-rwxr-xr-x | jobs/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jobs/__init__.py b/jobs/__init__.py index b4b4f48..efce333 100755 --- a/jobs/__init__.py +++ b/jobs/__init__.py @@ -78,11 +78,12 @@ class JobFinder(object): module = load_module('jobs.' + full_name, file, pathname, description) except Exception as e: - logging.critical('Import Error on ' + module_name + ': ' + str(e)) + logging.critical('Import Error on ' + module_name + ': ' + repr(e)) + logging.critical(logging.traceback.format_exc()) jobs.JobBase.sendEmail(self.config, 'Import Error on ' + module_name, str(e)) continue job_modules.append(module) return job_modules def get_jobs(self): - return self._jobs
\ No newline at end of file + return self._jobs |