pino testing

This commit is contained in:
Boki 2025-06-20 18:29:20 -04:00
parent 0497541a47
commit 18c2720fe8
2 changed files with 41 additions and 23 deletions

View file

@ -240,11 +240,12 @@ shutdown.onShutdown(async () => {
}
});
// Logger shutdown - registered last so it runs after all other shutdown operations
shutdown.onShutdown(async () => {
try {
logger.info('Shutting down loggers...');
await shutdownLoggers();
logger.info('Loggers shut down successfully');
// Don't log after shutdown
} catch (error) {
// Silently ignore logger shutdown errors
}