Skip to content

Commit

Permalink
Tweak more log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 15, 2024
1 parent 0bfcc09 commit 7ad9bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function _reallyRegisterSignalHandlers(logger: Logger) {
_shuttingDownGracefully = true;
}

logger.error(
logger.info(
`Received '${signal}'; attempting global graceful shutdown... (all termination signals will be ignored for the next 5 seconds)`,
);
const switchTimeout = setTimeout(switchToForcefulHandler, 5000);
Expand Down Expand Up @@ -220,7 +220,7 @@ function _reallyRegisterSignalHandlers(logger: Logger) {
process.stderr.on("error", stdioErrorHandler);
_releaseSignalHandlers = () => {
if (_shuttingDownGracefully || _shuttingDownForcefully) {
logger.warn(`Not unregistering signal handlers as we're shutting down`);
logger.debug(`Not unregistering signal handlers as we're shutting down`);
return;
}

Expand Down

0 comments on commit 7ad9bc6

Please sign in to comment.