From 8fe361407c3164bbcf75574a353bd6ebe7bec475 Mon Sep 17 00:00:00 2001 From: Ilia Kurenkov Date: Fri, 28 Apr 2023 15:57:24 +0200 Subject: [PATCH] Capture stderr from docker compose to improve debugging experience (#13949) --- datadog_checks_dev/datadog_checks/dev/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datadog_checks_dev/datadog_checks/dev/docker.py b/datadog_checks_dev/datadog_checks/dev/docker.py index 917b9403a7827..2689fb03a97dc 100644 --- a/datadog_checks_dev/datadog_checks/dev/docker.py +++ b/datadog_checks_dev/datadog_checks/dev/docker.py @@ -229,7 +229,8 @@ def __init__(self, compose_file, build=False, service_name=None): self.command.append(self.service_name) def __call__(self): - return run_command(self.command, check=True) + # Capture stderr from docker compose up to make debugging easier. + return run_command(self.command, check=True, capture='err') class ComposeFileLogs(LazyFunction):