From 5e4c918d403caca5368ab94410acc0a9f931deb2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 2 Jan 2021 06:11:51 -0500 Subject: [PATCH] feat: trim any extra debug log prefixes --- 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 fe1193e1e..e939cd1b2 100644 --- a/plugins/common/log.go +++ b/plugins/common/log.go @@ -110,7 +110,7 @@ func LogStderr(text string) { // LogDebug is the debug log formatter func LogDebug(text string) { - if os.Getenv("DOKKU_TRACE") == "" { - fmt.Fprintln(os.Stderr, fmt.Sprintf(" ? %s", text)) + if os.Getenv("DOKKU_TRACE") == "1" { + fmt.Fprintln(os.Stderr, fmt.Sprintf(" ? %s", strings.TrimPrefix(text, " ? "))) } }