Keep the container lock for the entire duration of attaching logs

Change-type: patch
This commit is contained in:
Pagan Gazzard 2023-10-11 14:12:37 +01:00 committed by Felipe Lalanne
parent 74d374b5ad
commit d685ccacb2

View File

@ -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 });
});
});