diff --git a/lib/Satan.js b/lib/Satan.js index 55219855..73729dd3 100644 --- a/lib/Satan.js +++ b/lib/Satan.js @@ -424,26 +424,26 @@ Satan.launchRPC = function launchRPC(cb) { var req = axon.socket('req'); Satan.client = new rpc.Client(req); - if (process.env.TRAVIS || process.env.NODE_ENV === 'test' || process.env.DEBUG) { - console.log('------------------- SOCK FILE STATS ------------------'); - fs.stat(cst.DAEMON_RPC_PORT, function(err, stats) { - if (err) console.error(err.stack || err); + // if (process.env.TRAVIS || process.env.NODE_ENV === 'test' || process.env.DEBUG) { + // console.log('------------------- SOCK FILE STATS ------------------'); + // fs.stat(cst.DAEMON_RPC_PORT, function(err, stats) { + // if (err) console.error(err.stack || err); - console.log('Sock file: %s', cst.DAEMON_RPC_PORT); + // console.log('Sock file: %s', cst.DAEMON_RPC_PORT); - console.log(' size: ' + stats["size"]); - console.log(' mode: ' + stats["mode"]); - console.log(' others eXecute: ' + (stats["mode"] & 1 ? 'x' : '-')); - console.log(' others Write: ' + (stats["mode"] & 2 ? 'w' : '-')); - console.log(' others Read: ' + (stats["mode"] & 4 ? 'r' : '-')); - console.log(' group eXecute: ' + (stats["mode"] & 10 ? 'x' : '-')); - console.log(' group Write: ' + (stats["mode"] & 20 ? 'w' : '-')); - console.log(' group Read: ' + (stats["mode"] & 40 ? 'r' : '-')); - console.log(' owner eXecute: ' + (stats["mode"] & 100 ? 'x' : '-')); - console.log(' owner Write: ' + (stats["mode"] & 200 ? 'w' : '-')); - console.log(' owner Read: ' + (stats["mode"] & 400 ? 'r' : '-')); - }); - } + // console.log(' size: ' + stats["size"]); + // console.log(' mode: ' + stats["mode"]); + // console.log(' others eXecute: ' + (stats["mode"] & 1 ? 'x' : '-')); + // console.log(' others Write: ' + (stats["mode"] & 2 ? 'w' : '-')); + // console.log(' others Read: ' + (stats["mode"] & 4 ? 'r' : '-')); + // console.log(' group eXecute: ' + (stats["mode"] & 10 ? 'x' : '-')); + // console.log(' group Write: ' + (stats["mode"] & 20 ? 'w' : '-')); + // console.log(' group Read: ' + (stats["mode"] & 40 ? 'r' : '-')); + // console.log(' owner eXecute: ' + (stats["mode"] & 100 ? 'x' : '-')); + // console.log(' owner Write: ' + (stats["mode"] & 200 ? 'w' : '-')); + // console.log(' owner Read: ' + (stats["mode"] & 400 ? 'r' : '-')); + // }); + // } Satan.client.sock.once('connect', function() { debug('Connected to Daemon');