Some more debug logging in core.linspector.py.

This commit is contained in:
Johannes Findeisen 2022-10-06 04:22:28 +02:00
commit af4d26ea80
2 changed files with 6 additions and 4 deletions

View file

@ -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 <you@hanez.org>'

View file

@ -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: