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...))
}
}
ns'>-13/+27 2020-05-03Slightly enhance loggingRené 'Necoro' Neumann1-4/+4 2020-05-03Explicit version infoRené 'Necoro' Neumann4-12/+15 2020-05-03--version flagRené 'Necoro' Neumann1-0/+6 2020-05-03Rename from 'client' to 'cl'René 'Necoro' Neumann5-26/+26 2020-05-03Use UIDPLUS Imap extensionRené 'Necoro' Neumann4-11/+33 2020-05-03Fix update in IMAPRené 'Necoro' Neumann1-2/+12 2020-05-03Update support for IMAPRené 'Necoro' Neumann5-17/+205 2020-05-03Option "reupload-if-updated"René 'Necoro' Neumann2-0/+4 2020-05-03Fix typoRené 'Necoro' Neumann1-2/+2 2020-05-02Use uuid library directly and encode to base64.René 'Necoro' Neumann6-10/+16 Also add an additional header `X-Feed2Imap-Item`, b/c the messageId contains the variable part of the hostname. 2020-05-02RestructureRené 'Necoro' Neumann8-95/+111 2020-05-02WIP: Message-IdsRené 'Necoro' Neumann8-5/+40 2020-05-02Typo and mention config example in READMERené 'Necoro' Neumann2-1/+3