mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-30 10:38:55 +00:00
Keep the container lock for the entire duration of attaching logs
Change-type: patch
This commit is contained in:
parent
74d374b5ad
commit
d685ccacb2
@ -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 });
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user