master > master: code go - logging debug dunkel

This commit is contained in:
RD 2021-11-06 18:15:35 +01:00
parent 972027ce41
commit ab38c181c9
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ package logging
* ---------------------------------------------------------------- */
import (
"fmt"
"os"
)
@ -24,7 +25,7 @@ func Debug(line interface{}, args ...interface{}) {
if !debugmode {
return
}
logGeneric(os.Stdout, "[\033[96;1mDEBUG\033[0m]", line, args...)
logGeneric(os.Stdout, "\033[2m[\033[96;1mDEBUG\033[0m\033[2m]\033[0m", fmt.Sprintf("\033[2m%v\033[0m", line), args...)
}
func Warn(line interface{}, args ...interface{}) {