From 7fff665014a960aff4acdd56d4bab849922e4d38 Mon Sep 17 00:00:00 2001 From: Mohamed Mahmoud <152813205+Haroka-74@users.noreply.github.com> Date: Mon, 20 Apr 2026 23:28:16 +0200 Subject: [PATCH] fix(fetcher): replace fmt.Print with standard logger (#712) --- fetcher/fetcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetcher/fetcher.go b/fetcher/fetcher.go index 074e398954c53ffb57a0efd6a521565fc4fe4e0c..92f59c57c14cace441d7f2113d8daeba6d657927 100644 --- a/fetcher/fetcher.go +++ b/fetcher/fetcher.go @@ -11,6 +11,7 @@ import ( "fmt" "io" "io/ioutil" + "log" "mime" "mime/quotedprintable" "net/textproto" @@ -1022,7 +1023,7 @@ func FetchEmailBodyFromMailbox(account *config.Account, mailbox string, uid uint } if os.Getenv("DEBUG_KITTY_IMAGES") != "" { msg := fmt.Sprintf("[kitty-img] body selection html=%s plain=%s chosen=%s\n", htmlPartID, plainPartID, textPartID) - fmt.Print(msg) + log.Print(msg) if path := os.Getenv("DEBUG_KITTY_LOG"); path != "" { if f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil { _, _ = f.WriteString(msg)