mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
snap node - remove extraneous console logging
This commit is contained in:
parent
71c0a0c7cf
commit
f70cd1d640
@ -1,9 +1,9 @@
|
||||
{
|
||||
"name" : "node-red-node-snmp",
|
||||
"version" : "0.0.7",
|
||||
"version" : "0.0.8",
|
||||
"description" : "A Node-RED node that looks for SNMP oids.",
|
||||
"dependencies" : {
|
||||
"net-snmp" : "1.1.13"
|
||||
"net-snmp" : "^1.1.19"
|
||||
},
|
||||
"repository" : {
|
||||
"type":"git",
|
||||
|
@ -76,7 +76,7 @@ module.exports = function(RED) {
|
||||
|
||||
function responseCb(error, table) {
|
||||
if (error) {
|
||||
console.error(error.toString());
|
||||
le.error(error.toString());
|
||||
} else {
|
||||
var indexes = [];
|
||||
for (var index in table) {
|
||||
@ -93,10 +93,10 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
columns.sort(sortInt);
|
||||
console.log("row index = " + indexes[i]);
|
||||
for (var j = 0; j < columns.length; j++) {
|
||||
console.log(" column " + columns[j] + " = " + table[indexes[i]][columns[j]]);
|
||||
}
|
||||
// console.log("row index = " + indexes[i]);
|
||||
// for (var j = 0; j < columns.length; j++) {
|
||||
// console.log(" column " + columns[j] + " = " + table[indexes[i]][columns[j]]);
|
||||
// }
|
||||
}
|
||||
msg.payload = table;
|
||||
node.send(msg);
|
||||
@ -146,7 +146,7 @@ module.exports = function(RED) {
|
||||
node.error(snmp.varbindError(varbinds[i]));
|
||||
}
|
||||
else {
|
||||
console.log(varbinds[i].oid + "|" + varbinds[i].value);
|
||||
//console.log(varbinds[i].oid + "|" + varbinds[i].value);
|
||||
response.add({oid: varbinds[i].oid, value: varbinds[i].value});
|
||||
}
|
||||
}
|
||||
@ -195,7 +195,7 @@ module.exports = function(RED) {
|
||||
node.error(snmp.varbindError(varbinds[i]));
|
||||
}
|
||||
else {
|
||||
console.log(varbinds[i].oid + "|" + varbinds[i].value);
|
||||
//console.log(varbinds[i].oid + "|" + varbinds[i].value);
|
||||
response.add({oid: varbinds[i].oid, value: varbinds[i].value});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user