Remove cruft from log output (#479)

This commit is contained in:
David Boreham 2023-07-31 22:20:04 -06:00 committed by GitHub
parent 6a0a752e2e
commit 2da03d7ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ def logs_operation(ctx, tail: int, follow: bool, extra_args: str):
services_list = extra_args_list if extra_args_list is not None else []
logs_stream = ctx.obj.docker.compose.logs(services=services_list, tail=tail, follow=follow, stream=True)
for stream_type, stream_content in logs_stream:
print(f"Stream type: {stream_type}, stream content: {stream_content}")
print(stream_content.decode("utf-8"), end="")
@command.command()