@@ -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