fixed priority shutdown

This commit is contained in:
Boki 2025-06-21 09:08:40 -04:00
parent 6d5d746f68
commit 5929612e36
6 changed files with 113 additions and 46 deletions

View file

@ -58,7 +58,7 @@ function createDestination(
// Console: In-process pretty stream for dev (fast shutdown)
if (config.logConsole && config.environment !== 'production') {
const prettyStream = pretty({
sync: false, // IMPORTANT: Make async to prevent blocking the event loop
sync: true, // IMPORTANT: Make async to prevent blocking the event loop
colorize: true,
translateTime: 'yyyy-mm-dd HH:MM:ss.l',
messageFormat: '[{service}{childName}] {msg}',