debugging
paulfantom committed
Jul 13, 2016 at 10:15 UTC
cb5d2be5f4f01d44d4b27a3a0fc8d8df60976003
2 files changed
+5
-3
plugins.d/python.d.plugin
+4
-2
@@ -286,8 +286,10 @@ class PythonCharts(object):
286
if job.name is not None:
287
prefix += "/" + job.name
288
prefix += ": "
289
-
290
- self.jobs.remove(job)
289
+ try:
290
+ self.jobs.remove(job)
291
+ except Exception as e:
292
+ msg.debug("This shouldn't happen. NO " + prefix + " IN LIST:" + str(self.jobs))
293
if reason is None:
294
return
295
elif reason[:3] == "no ":
python.d/python_modules/base.py
+1
-1
@@ -502,7 +502,7 @@ class SocketService(SimpleService):
502
else:
503
self.name = str(self.name)
504
try:
505
- self.unix_socket = int(self.configuration['socket'])
505
+ self.unix_socket = str(self.configuration['socket'])
506
except (KeyError, TypeError):
507
self.error("No unix socket specified. Trying TCP/IP socket.")
508
try: