@cryptotaxi247 / netdata-1 / commits / 806e97359

chore(python.d): improve config file parsing error message (#13363)

Ilya Mashchenko committed Jul 12, 2022 at 09:39 UTC 806e97359488cb2ea0211d319fab687851991320
1 file changed +2 -1
collectors/python.d.plugin/python.d.plugin.in
+2 -1
@@ -572,7 +572,8 @@ class Plugin:
572 try:
573 statuses = JobsStatuses().from_file(abs_path)
574 except Exception as error:
575 - self.log.warning("error on loading '{0}' : {1}".format(abs_path, repr(error)))
575 + self.log.error("[{0}] config file invalid YAML format: {1}".format(
576 + module_name, ' '.join([v.strip() for v in str(error).split('\n')])))
577 return None
578 self.log.debug("'{0}' is loaded".format(abs_path))
579 return statuses