feat: add LogDebug

This commit is contained in:
Jose Diaz-Gonzalez
2020-08-30 13:38:38 -04:00
parent e6f2ee6499
commit 147abc5c6b

View File

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