0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-17 11:12:42 +00:00

fix log warnings in start_job ()

This commit is contained in:
Ilya Mashchenko 2019-09-24 10:13:26 +03:00 committed by GitHub
parent 3caa538b14
commit 4c357ff53d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -588,16 +588,16 @@ class Plugin:
try:
job.init()
except Exception as error:
self.log.warning("{0}[{1}] : unhandled exception on init : {2}, skipping the job",
job.module_name, job.real_name, repr(error))
self.log.warning("{0}[{1}] : unhandled exception on init : {2}, skipping the job".format(
job.module_name, job.real_name, repr(error)))
job.status = JOB_STATUS_DROPPED
continue
try:
ok = job.check()
except Exception as error:
self.log.warning("{0}[{1}] : unhandled exception on check : {2}, skipping the job",
job.module_name, job.real_name, repr(error))
self.log.warning("{0}[{1}] : unhandled exception on check : {2}, skipping the job".format(
job.module_name, job.real_name, repr(error)))
job.status = JOB_STATUS_DROPPED
continue
if not ok:
@ -609,8 +609,8 @@ class Plugin:
try:
job.create()
except Exception as error:
self.log.error("{0}[{1}] : unhandled exception on create : {2}, skipping the job",
job.module_name, job.real_name, repr(error))
self.log.warning("{0}[{1}] : unhandled exception on create : {2}, skipping the job".format(
job.module_name, job.real_name, repr(error)))
job.status = JOB_STATUS_DROPPED
continue