event-hub/azureeventhub2.js
function printResultFor(node, op) {
        return function printResult(err, res) {
            if (err) node.error(op + ' error: ' + err.toString());
            if (res) node.log(op + ' status: ' + res.constructor.name);
        };
    }
function printResultFor(node, op) {
        return function printResult(err, res) {
            if (err) node.error(op + ' error: ' + err.toString());
            if (res) node.log(op + ' status: ' + res.constructor.name);
        };
    }
function printResultFor ( node , op ) { return function printResult ( err , res ) { if ( err ) node . error ( op + ' error: ' + err . toString ( ) ) ; if ( res ) node . log ( op + ' status: ' + res . constructor . name ) ; } ; }
Helper function to print results in the console
Helper function to print results in the console