fix: correct the DOKKU_QUIET_OUTPUT env var check for golang log methods

This commit is contained in:
Jose Diaz-Gonzalez
2019-01-21 17:09:28 -05:00
parent 6f1e964c9f
commit 8d6a1773a3

View File

@@ -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)
}
}