From 8d22b28f9b677b2d6251a15734e214200cfe10e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Thu, 23 Feb 2023 15:36:31 +0100 Subject: [PATCH] Honor stderr in logs --- surveyor/podman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/surveyor/podman.py b/surveyor/podman.py index 67a0bb4..263a530 100644 --- a/surveyor/podman.py +++ b/surveyor/podman.py @@ -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):