fastify-graceful-shutdown
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -39,5 +39,9 @@ 'use strict' | ||
logger.error({ err: err, signal: signal }, 'process terminated') | ||
// Avoid losing data | ||
logger.flush() | ||
handlerEventListener.exit(1) | ||
} else { | ||
logger.debug({ signal: signal }, 'process terminated') | ||
// Avoid losing data | ||
logger.flush() | ||
handlerEventListener.exit(0) | ||
@@ -44,0 +48,0 @@ } |
{ | ||
"name": "fastify-graceful-shutdown", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "Gracefully shutdown fastify", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7332
106