aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-19 15:22:53 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-19 15:22:53 +0200
commit00e697170723d8eb82b2348f6dcb902435c40483 (patch)
treea1224a6e44088e16b15a96043debf97088166975 /internal
parent0b09b3a77b4784e63419114e4c43baf1f3ae2562 (diff)
downloadfeed2imap-go-00e697170723d8eb82b2348f6dcb902435c40483.tar.gz
feed2imap-go-00e697170723d8eb82b2348f6dcb902435c40483.tar.bz2
feed2imap-go-00e697170723d8eb82b2348f6dcb902435c40483.zip
Fix debug logging m(
Diffstat (limited to 'internal')
-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...))
}
}