God.handleExit: more verbose

This commit is contained in:
jshkurti 2015-01-29 15:59:40 +01:00
parent 92e4519652
commit 9e4e246019
2 changed files with 2 additions and 2 deletions

View File

@ -240,6 +240,7 @@ God.executeApp = function executeApp(env, cb) {
});
clu.once('close', function cluClose(code) {
console.error('App closed with code: ' + code);
clu.removeAllListeners();
if (clu.connected == true)
clu.disconnect();

View File

@ -89,8 +89,7 @@ module.exports = function(God) {
proc.pm2_env.versioning.repo_path))
return cb();
proc.pm2_env.versioning.ahead = meta.ahead;
proc.pm2_env.versioning.unstaged = meta.unstaged;
proc.pm2_env.versioning = meta;
debug('[PM2][WORKER] %s parsed for versioning', proc.pm2_env.name);
return cb();
});