Skip to content

Commit

Permalink
Honor stderr in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Feb 23, 2023
1 parent a1a29f1 commit 8d22b28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion surveyor/podman.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ def removeContainer(container):

def containerLogs(container):
command = ["logs", container]
return invokePodmanCommand(command)[0]
stdout, stderr = invokePodmanCommand(command)
return stdout + "\n" + stderr

def runAndWatch(container, cgroup, watchCgroup, notify=None, wallClockLimit=None,
cpuClockLimit=None, pollInterval=1, notifyInterval=10):
Expand Down

0 comments on commit 8d22b28

Please sign in to comment.