summaryrefslogtreecommitdiffstats
path: root/node.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node.d/named.node.js2
-rw-r--r--node.d/node_modules/netdata.js9
2 files changed, 8 insertions, 3 deletions
diff --git a/node.d/named.node.js b/node.d/named.node.js
index 3d7946557..02c890c60 100644
--- a/node.d/named.node.js
+++ b/node.d/named.node.js
@@ -201,7 +201,7 @@ var named = {
r = JSON.parse(data);
if(typeof r === 'undefined' || r === null) {
- netdata.serviceError(service, "Cannot parse these data: " + data);
+ service.error("Cannot parse these data: " + data.toString());
return;
}
diff --git a/node.d/node_modules/netdata.js b/node.d/node_modules/netdata.js
index 143255d9e..4ab8308c1 100644
--- a/node.d/node_modules/netdata.js
+++ b/node.d/node_modules/netdata.js
@@ -68,7 +68,6 @@ var netdata = {
modules_configuring: 0,
charts: {},
-
processors: {
http: {
name: 'http',
@@ -245,7 +244,13 @@ var netdata = {
if(__DEBUG === true)
netdata.debug(service.module.name + ': ' + service.name + ': processing ' + service.processor.name + ' response (received in ' + (service.ended - service.started).toString() + ' ms)');
- responseProcessor(service, response);
+ try {
+ responseProcessor(service, response);
+ }
+ catch(e) {
+ netdata.error(e);
+ service.error("responseProcessor failed process response data.");
+ }
service.running = false;
service.module.active--;