Skip to content

Commit f70cd1d

Browse files
author
Dave Conway-Jones
committed
snap node - remove extraneous console logging
1 parent 71c0a0c commit f70cd1d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

io/snmp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name" : "node-red-node-snmp",
3-
"version" : "0.0.7",
3+
"version" : "0.0.8",
44
"description" : "A Node-RED node that looks for SNMP oids.",
55
"dependencies" : {
6-
"net-snmp" : "1.1.13"
6+
"net-snmp" : "^1.1.19"
77
},
88
"repository" : {
99
"type":"git",

io/snmp/snmp.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = function(RED) {
7676

7777
function responseCb(error, table) {
7878
if (error) {
79-
console.error(error.toString());
79+
le.error(error.toString());
8080
} else {
8181
var indexes = [];
8282
for (var index in table) {
@@ -93,10 +93,10 @@ module.exports = function(RED) {
9393
}
9494
}
9595
columns.sort(sortInt);
96-
console.log("row index = " + indexes[i]);
97-
for (var j = 0; j < columns.length; j++) {
98-
console.log(" column " + columns[j] + " = " + table[indexes[i]][columns[j]]);
99-
}
96+
// console.log("row index = " + indexes[i]);
97+
// for (var j = 0; j < columns.length; j++) {
98+
// console.log(" column " + columns[j] + " = " + table[indexes[i]][columns[j]]);
99+
// }
100100
}
101101
msg.payload = table;
102102
node.send(msg);
@@ -146,7 +146,7 @@ module.exports = function(RED) {
146146
node.error(snmp.varbindError(varbinds[i]));
147147
}
148148
else {
149-
console.log(varbinds[i].oid + "|" + varbinds[i].value);
149+
//console.log(varbinds[i].oid + "|" + varbinds[i].value);
150150
response.add({oid: varbinds[i].oid, value: varbinds[i].value});
151151
}
152152
}
@@ -195,7 +195,7 @@ module.exports = function(RED) {
195195
node.error(snmp.varbindError(varbinds[i]));
196196
}
197197
else {
198-
console.log(varbinds[i].oid + "|" + varbinds[i].value);
198+
//console.log(varbinds[i].oid + "|" + varbinds[i].value);
199199
response.add({oid: varbinds[i].oid, value: varbinds[i].value});
200200
}
201201
}

0 commit comments

Comments
 (0)