From c8e2bff252044a3aebf1c38fa9274387d7b8bbb2 Mon Sep 17 00:00:00 2001 From: Branden Rodgers Date: Tue, 14 Nov 2023 13:29:37 -0500 Subject: [PATCH] log after updating the log level --- packages/cli/lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/lib/process.js b/packages/cli/lib/process.js index 7c780cd0d..626940d2b 100644 --- a/packages/cli/lib/process.js +++ b/packages/cli/lib/process.js @@ -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; @@ -28,6 +27,7 @@ const handleExit = callback => { setLogLevel(LOG_LEVEL.NONE); } + logger.debug(`Attempting to gracefully exit. Triggered by ${signal}`); await callback({ isSIGHUP }); } });