Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
config.db.close().then(() => {
config.logger.warn("Database disconnected.");
const finalLogger = pino.final(config.logger);
finalLogger.warn("Bye.");
process.exit(1);
});
});
export const getFinalLogger = (logger: pino.Logger) => pino.final(logger);