diff --git a/plugins/common/log.go b/plugins/common/log.go index 75a1689ab..a1715999c 100644 --- a/plugins/common/log.go +++ b/plugins/common/log.go @@ -100,3 +100,10 @@ func LogExclaim(text string) { func LogStderr(text string) { fmt.Fprintln(os.Stderr, text) } + +// LogDebug is the debug log formatter +func LogDebug(text string) { + if os.Getenv("DOKKU_TRACE") == "" { + fmt.Fprintln(os.Stderr, fmt.Sprintf(" ? %s", text)) + } +}