feat: add LogDebug

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-08-30 13:41:15 -04:00
1 parent e6f2ee6499
commit 147abc5c6b
1 file changed
+7
+7
View File
@@ -100,3 +100,10 @@ func LogExclaim(text string) {
func LogStderr(text string) { func LogStderr(text string) {
fmt.Fprintln(os.Stderr, text) 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))
}
}