diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2017-12-19 23:39:21 +0000 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2017-12-19 23:39:21 +0000 |
commit | 61aedf201c2c4bf0e5aa4db32e74f4d860b88593 (patch) | |
tree | bcf4f9a0cd8bc2daf38b2ff9f29bfcc1e5ed8968 /node.d | |
parent | New upstream version 1.8.0+dfsg (diff) | |
download | netdata-61aedf201c2c4bf0e5aa4db32e74f4d860b88593.tar.xz netdata-61aedf201c2c4bf0e5aa4db32e74f4d860b88593.zip |
New upstream version 1.9.0+dfsgupstream/1.9.0+dfsg
Diffstat (limited to 'node.d')
-rw-r--r-- | node.d/named.node.js | 2 | ||||
-rw-r--r-- | node.d/node_modules/netdata.js | 9 |
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--; |