aboutsummaryrefslogtreecommitdiff
path: root/internal/log/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/log/log.go')
-rw-r--r--internal/log/log.go4
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...))
}
}