From 00e697170723d8eb82b2348f6dcb902435c40483 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 19 Apr 2020 15:22:53 +0200 Subject: Fix debug logging m( --- internal/log/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/log') 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...)) } } -- cgit v1.2.3-70-g09d2