Show logs for each container independently
This commit is contained in:
parent
8eb55735e9
commit
b348117a80
|
@ -0,0 +1 @@
|
|||
Fixes the issue with compose logs for multiple targets when any container is missing
|
|
@ -3553,9 +3553,10 @@ async def compose_logs(compose: PodmanCompose, args: argparse.Namespace) -> None
|
|||
podman_args.append("-t")
|
||||
if args.until:
|
||||
podman_args.extend(["--until", args.until])
|
||||
# podman logs supports multiple targets,
|
||||
# but will fail completely if any container is missing
|
||||
for target in targets:
|
||||
podman_args.append(target)
|
||||
await compose.podman.run([], "logs", podman_args)
|
||||
await compose.podman.run([], "logs", [*podman_args, target])
|
||||
|
||||
|
||||
@cmd_run(podman_compose, "config", "displays the compose file")
|
||||
|
|
Loading…
Reference in New Issue