Skip to content

Commit

Permalink
log after updating the log level
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Nov 14, 2023
1 parent 028297e commit c8e2bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const handleExit = callback => {
process.removeAllListeners(signal);

process.on(signal, async () => {
logger.debug(`Attempting to gracefully exit. Triggered by ${signal}`);
// Prevent duplicate exit handling
if (!exitInProgress) {
exitInProgress = true;
Expand All @@ -28,6 +27,7 @@ const handleExit = callback => {
setLogLevel(LOG_LEVEL.NONE);
}

logger.debug(`Attempting to gracefully exit. Triggered by ${signal}`);
await callback({ isSIGHUP });
}
});
Expand Down

0 comments on commit c8e2bff

Please sign in to comment.