debugging info fixes
Costa Tsaousis committed
Jun 22, 2016 at 11:04 UTC
64656dc9336370e00a1d9e65334334d27d998991
1 file changed
+2
-5
plugins.d/python.d.plugin
+2
-5
@@ -254,9 +254,8 @@ class PythonCharts(object):
254
"""
255
# get default values
256
defaults = {}
257
+ debug(module.__name__ + ": reading configuration")
258
for key in BASE_CONFIG:
258
- # FIXME for some reason this is called 3 times per module
259
- debug(module.__name__ + ": reading configuration")
259
try:
260
# get defaults from module config
261
defaults[key] = int(config.pop(key))
@@ -365,9 +364,7 @@ class PythonCharts(object):
364
if not job.check():
365
self._stop(job, "failed check")
366
else:
368
- # FIXME job.name is incomplete here
369
- # it shows None is example and only the job name without the module in mysql
370
- debug(job.name, ": check succeeded")
367
+ debug(job.chart_name, ": check succeeded")
368
i += 1
369
except AttributeError:
370
self._stop(job, "no check")