refactor: capture output by default

This is almost certainly the correct default for Dokku. While it's a BC break and might cause an increase in memory usage, the api is mostly internal and therefore this is safe to use.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-02-12 20:28:31 -05:00
1 parent 047a3c00f5
commit 3c6cc68086
27 files changed
+75 -107

No files matched your search

+2 -3
View File
@@ -46,9 +46,8 @@ func TriggerDockerArgsProcessDeploy(appName string) error {
if !hasDriverOpt {
result, _ := common.CallExecCommand(common.ExecCommandInput{
Command: common.DockerBin(),
Args: []string{"system", "info", "--format", "{{ .LoggingDriver }}"},
CaptureOutput: true,
Command: common.DockerBin(),
Args: []string{"system", "info", "--format", "{{ .LoggingDriver }}"},
})
if !allowedDrivers[result.StdoutContents()] {