mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
minor: remove debugging
This commit is contained in:
parent
bbed4719ad
commit
0e85ea47a3
36
lib/Satan.js
36
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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user