Added missing debug info for IPC on start

refs 022a433e56

- noticed I missed adding debug info in one place (not that it's used, just for consistency)
- also made the SIGINT/TERM code slightly more readable
This commit is contained in:
Hannah Wolfe 2020-08-06 20:39:49 +01:00
parent 2efcf94645
commit 028d3fc88b

View File

@ -233,7 +233,9 @@ GhostServer.prototype.logStartMessages = function () {
}
// ensure that Ghost exits correctly on Ctrl+C and SIGTERM
process.removeAllListeners('SIGINT').on('SIGINT', shutdown).removeAllListeners('SIGTERM').on('SIGTERM', shutdown);
process
.removeAllListeners('SIGINT').on('SIGINT', shutdown)
.removeAllListeners('SIGTERM').on('SIGTERM', shutdown);
};
/**
@ -353,7 +355,8 @@ module.exports.announceServerStart = function announceServerStart() {
// CASE: Ghost extension - bootstrap sockets
if (config.get('bootstrap-socket')) {
return connectToBootstrapSocket({
started: true
started: true,
debug: debugInfo
});
}