mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
God.handleExit: more verbose
This commit is contained in:
parent
92e4519652
commit
9e4e246019
@ -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();
|
||||
|
||||
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user