Some more debug logging in core.linspector.py.
This commit is contained in:
parent
390f768172
commit
af4d26ea80
2 changed files with 6 additions and 4 deletions
|
|
@ -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>'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue