@cryptotaxi247 / netdata-1 / commits / 4c357ff53

fix log warnings in start_job (#6928)

Ilya Mashchenko committed Sep 24, 2019 at 10:13 UTC 4c357ff53d9fdf96ce429e198343c5eab0d02c54
1 file changed +6 -6
collectors/python.d.plugin/python.d.plugin.in
+6 -6
@@ -588,16 +588,16 @@ class Plugin:
588 try:
589 job.init()
590 except Exception as error:
591 - self.log.warning("{0}[{1}] : unhandled exception on init : {2}, skipping the job",
592 - job.module_name, job.real_name, repr(error))
591 + self.log.warning("{0}[{1}] : unhandled exception on init : {2}, skipping the job".format(
592 + job.module_name, job.real_name, repr(error)))
593 job.status = JOB_STATUS_DROPPED
594 continue
595
596 try:
597 ok = job.check()
598 except Exception as error:
599 - self.log.warning("{0}[{1}] : unhandled exception on check : {2}, skipping the job",
600 - job.module_name, job.real_name, repr(error))
599 + self.log.warning("{0}[{1}] : unhandled exception on check : {2}, skipping the job".format(
600 + job.module_name, job.real_name, repr(error)))
601 job.status = JOB_STATUS_DROPPED
602 continue
603 if not ok:
@@ -609,8 +609,8 @@ class Plugin:
609 try:
610 job.create()
611 except Exception as error:
612 - self.log.error("{0}[{1}] : unhandled exception on create : {2}, skipping the job",
613 - job.module_name, job.real_name, repr(error))
612 + self.log.warning("{0}[{1}] : unhandled exception on create : {2}, skipping the job".format(
613 + job.module_name, job.real_name, repr(error)))
614 job.status = JOB_STATUS_DROPPED
615 continue
616