feat: add LogDebug
This commit is contained in:
1 parent
e6f2ee6499
commit
147abc5c6b
1 file changed
+7
@@ -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))
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user