feat: trim any extra debug log prefixes
This commit is contained in:
1 parent
e8aaacff5e
commit
5e4c918d40
1 file changed
+2
-2
@@ -110,7 +110,7 @@ func LogStderr(text string) {
|
|||||||
|
|
||||||
// LogDebug is the debug log formatter
|
// LogDebug is the debug log formatter
|
||||||
func LogDebug(text string) {
|
func LogDebug(text string) {
|
||||||
if os.Getenv("DOKKU_TRACE") == "" {
|
if os.Getenv("DOKKU_TRACE") == "1" {
|
||||||
fmt.Fprintln(os.Stderr, fmt.Sprintf(" ? %s", text))
|
fmt.Fprintln(os.Stderr, fmt.Sprintf(" ? %s", strings.TrimPrefix(text, " ? ")))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user