From 8d6a1773a3298d43855bd8eeadba86130c8b5841 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 21 Jan 2019 17:09:28 -0500 Subject: [PATCH] fix: correct the DOKKU_QUIET_OUTPUT env var check for golang log methods --- plugins/common/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/common/log.go b/plugins/common/log.go index dd3992e83..68f130ba0 100644 --- a/plugins/common/log.go +++ b/plugins/common/log.go @@ -19,7 +19,7 @@ func LogInfo1(text string) { // LogInfo1Quiet is the info1 header formatter (with quiet option) func LogInfo1Quiet(text string) { - if os.Getenv("DOKKU_QUIET_OUTPUT") != "" { + if os.Getenv("DOKKU_QUIET_OUTPUT") == "" { LogInfo1(text) } } @@ -45,7 +45,7 @@ func LogVerbose(text string) { // LogVerboseQuiet is the verbose log formatter // prints indented text to stdout (with quiet option) func LogVerboseQuiet(text string) { - if os.Getenv("DOKKU_QUIET_OUTPUT") != "" { + if os.Getenv("DOKKU_QUIET_OUTPUT") == "" { LogVerbose(text) } }