From d685ccacb245f0f0e4e2c8cd04d5c202da0d551b Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Wed, 11 Oct 2023 14:12:37 +0100 Subject: [PATCH] Keep the container lock for the entire duration of attaching logs Change-type: patch --- src/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.ts b/src/logger.ts index 9d2797bc..867eff4d 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -150,7 +150,7 @@ export function attach( } return Bluebird.using(lock(containerId), async () => { - logMonitor.attach(containerId, (message) => { + await logMonitor.attach(containerId, (message) => { log({ ...serviceInfo, ...message }); }); });