]> arthur.barton.de Git - netdata.git/blobdiff - plugins.d/python.d.plugin
non-blocking `SocketService`
[netdata.git] / plugins.d / python.d.plugin
index 45c85c804716613a528938e351a99a6134143e51..085d4fc7cfe9beb83a5c4fc6741c770957e3b448 100755 (executable)
@@ -341,7 +341,7 @@ class PythonCharts(object):
                         if job.override_name is not None:
                             new_name = job.__module__ + '_' + job.override_name
                             if new_name in overridden:
-                                msg.error(job.chart_name + " already exists. Stopping '" + job.name + "'")
+                                msg.error(job.override_name + " already exists. Stopping '" + job.name + "'")
                                 self._stop(job)
                                 i -= 1
                             else:
@@ -351,9 +351,10 @@ class PythonCharts(object):
                                 overridden.append(job.chart_name)
                     except Exception:
                         pass
-            except AttributeError:
+            except AttributeError as e:
                 self._stop(job)
                 msg.error(job.chart_name, "cannot find check() function.")
+                msg.debug(str(e))
             except (UnboundLocalError, Exception) as e:
                 msg.error(job.chart_name, str(e))
                 self._stop(job)