Skip to content

Commit

Permalink
Capture stderr from docker compose to improve debugging experience (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iliakur authored Apr 28, 2023
1 parent 35a8236 commit 8fe3614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datadog_checks_dev/datadog_checks/dev/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8fe3614

Please sign in to comment.