diff options
-rw-r--r-- | internal/log/log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/log/log.go b/internal/log/log.go index d2c09d0..d25ea8e 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -15,13 +15,13 @@ func SetDebug(state bool) { } func Print(v ...interface{}) { - if !enableDebug { + if enableDebug { _ = log.Output(2, fmt.Sprint(v...)) } } func Printf(format string, v ...interface{}) { - if !enableDebug { + if enableDebug { _ = log.Output(2, fmt.Sprintf(format, v...)) } } |