master > master: code go - logging debug dunkel
This commit is contained in:
parent
972027ce41
commit
ab38c181c9
@ -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{}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user