From 54fb2b5d7513d572bef34e5920c45f4787ddb99f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Nov 2020 18:21:50 -0500 Subject: [PATCH] feat: suppress output when not necessary --- plugins/ps/triggers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index 63b85e6bd..8f9047941 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -164,7 +164,11 @@ func TriggerProcfileGetCommand(appName string, processType string, port int) err procfilePath := getProcfilePath(appName) if !common.FileExists(procfilePath) { image := common.GetDeployingAppImageName(appName, "", "") - if err := common.PlugnTrigger("procfile-extract", []string{appName, image}...); err != nil { + err := common.SuppressOutput(func() error { + return common.PlugnTrigger("procfile-extract", []string{appName, image}...) + }) + + if err != nil { return err } }