fastify-graceful-shutdown
Advanced tools
Comparing version 3.4.2 to 3.5.0
12
index.js
@@ -29,4 +29,4 @@ 'use strict' | ||
new Error( | ||
`${signal} handler was already registered use fastify.gracefulShutdown` | ||
) | ||
`${signal} handler was already registered use fastify.gracefulShutdown`, | ||
), | ||
) | ||
@@ -42,3 +42,3 @@ return | ||
} else { | ||
logger.info({ signal: signal }, 'process terminated') | ||
logger.debug({ signal: signal }, 'process terminated') | ||
handlerEventListener.exit(0) | ||
@@ -52,3 +52,3 @@ } | ||
{ signal: signal, timeout: timeout }, | ||
'terminate process after timeout' | ||
'terminate process after timeout', | ||
) | ||
@@ -74,3 +74,3 @@ handlerEventListener.exit(1) | ||
addHandler((signal, cb) => { | ||
logger.info({ signal: signal }, 'triggering close hook') | ||
logger.debug({ signal: signal }, 'triggering close hook') | ||
fastify.close(cb) | ||
@@ -83,3 +83,3 @@ }) | ||
terminateAfterTimeout(signal, timeout) | ||
logger.info({ signal: signal }, 'received signal') | ||
logger.debug({ signal: signal }, 'received signal') | ||
shutdown(signal) | ||
@@ -86,0 +86,0 @@ } |
{ | ||
"name": "fastify-graceful-shutdown", | ||
"version": "3.4.2", | ||
"version": "3.5.0", | ||
"description": "Gracefully shutdown fastify", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7236