diff --git a/src/utils/docker.ts b/src/utils/docker.ts index 503b982..ce12381 100644 --- a/src/utils/docker.ts +++ b/src/utils/docker.ts @@ -316,25 +316,16 @@ export class Docker { } } - public async logs( - target: ContainerType, - outputStream: NodeJS.WriteStream, - follow = false, - tail?: number, - ): Promise { + public async logs(target: ContainerType, outputStream: NodeJS.WriteStream, tail?: number): Promise { const { container } = await this.findContainer(this.getContainerName(target)) if (!container) { throw new Error('Queen container does not exists, even though it should have had!') } - const logs = await container.logs({ stdout: true, stderr: true, follow, tail }) + const logs = await container.logs({ stdout: true, stderr: true, tail }) - if (!follow) { - outputStream.write(logs as unknown as Buffer) - } else { - logs.pipe(outputStream) - } + outputStream.write(logs as unknown as Buffer) } public async stopAll(allWithPrefix = false, deleteContainers = false): Promise {