diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-19 15:22:53 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-19 15:22:53 +0200 |
commit | 00e697170723d8eb82b2348f6dcb902435c40483 (patch) | |
tree | a1224a6e44088e16b15a96043debf97088166975 | |
parent | 0b09b3a77b4784e63419114e4c43baf1f3ae2562 (diff) | |
download | feed2imap-go-00e697170723d8eb82b2348f6dcb902435c40483.tar.gz feed2imap-go-00e697170723d8eb82b2348f6dcb902435c40483.tar.bz2 feed2imap-go-00e697170723d8eb82b2348f6dcb902435c40483.zip |
Fix debug logging m(
-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...)) } } |