From af4d26ea80c993f135ef4160e324814108f3e9a3 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 6 Oct 2022 04:22:28 +0200 Subject: [PATCH] Some more debug logging in core.linspector.py. --- bin/linspector | 2 +- linspector/core/linspector.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/linspector b/bin/linspector index e10f2a6..327c654 100755 --- a/bin/linspector +++ b/bin/linspector @@ -37,7 +37,7 @@ logger = logging.getLogger('linspector') # i currently only increase the 3rd number because the goal is that 0.20.* will become the first # stable version. -__version__ = '0.19.32.dev1' +__version__ = '0.19.33.dev1' __author__ = 'Johannes Findeisen ' diff --git a/linspector/core/linspector.py b/linspector/core/linspector.py index e325a47..4a4fe79 100644 --- a/linspector/core/linspector.py +++ b/linspector/core/linspector.py @@ -14,11 +14,13 @@ from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor def job_function(log, monitor): try: - log('debug', 'executing job_function for monitor: ' + monitor.get_identifier()) + log('debug', 'executing job_function for monitor identifier: ' + monitor.get_identifier() + + ' with monitor object: ' + str(monitor)) monitor.handle_call() except Exception as err: - log('warning', 'execution failed for job_function for monitor: ' + - monitor.get_identifier() + ' error: ' + str(err)) + log('warning', 'execution failed for job_function for monitor identifier: ' + + monitor.get_identifier() + ' with monitor object: ' + str(monitor) + ' error: ' + + str(err)) class Linspector: