pino testing
This commit is contained in:
parent
0497541a47
commit
18c2720fe8
2 changed files with 41 additions and 23 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue