Skip to content

Commit

Permalink
Add more logging on starting process errors
Browse files Browse the repository at this point in the history
  • Loading branch information
greenscientist committed Sep 8, 2023
1 parent c77ce46 commit b2433d3
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,18 @@ const startProcess = async function (
name: serviceName
});
});
startedProcess.on('close', (code, signal) => {
console.error(`${tagName} server (${serviceName})-(${startedProcess.pid}) closed with code ${code} and signal ${signal}`
);
resolve({
status: 'not_running',
service: tagName,
action: 'start',
name: serviceName
});
});
startedProcess.on('error', (error) => {
console.error(error);
console.error(`${tagName} server (${serviceName})-(${startedProcess.pid}) exited with error: ${error}`);
resolve({
status: 'error',
service: tagName,
Expand Down

0 comments on commit b2433d3

Please sign in to comment.