diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-09-14 13:01:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 13:01:46 +0300 |
commit | d581a4f2768b5faddb22184cc40d9324eee4093e (patch) | |
tree | 9ca220f07363377fd52abf9b7a3b1bd01f7af962 | |
parent | 2a3b1dc5c55706c196f007b1b1b7aa1581d66a88 (diff) |
fix using undefined var when loading job statuses in python.d (#15965)
-rw-r--r-- | collectors/python.d.plugin/python.d.plugin.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/python.d.plugin/python.d.plugin.in b/collectors/python.d.plugin/python.d.plugin.in index 681ceb403a..0ebf3d06f6 100644 --- a/collectors/python.d.plugin/python.d.plugin.in +++ b/collectors/python.d.plugin/python.d.plugin.in @@ -582,8 +582,8 @@ class Plugin: try: statuses = JobsStatuses().from_file(abs_path) except Exception as error: - self.log.error("[{0}] config file invalid YAML format: {1}".format( - module_name, ' '.join([v.strip() for v in str(error).split('\n')]))) + self.log.error("'{0}' invalid JSON format: {1}".format( + abs_path, ' '.join([v.strip() for v in str(error).split('\n')]))) return None self.log.debug("'{0}' is loaded".format(abs_path)) return statuses |