From 01f45d1a42d5bfa9500edb2b8f14cfc9cff64e5b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 16 Jan 2025 11:31:02 +0800 Subject: IMAP: Use clog.Debug instead of fmt.Printf --- serve_imap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serve_imap.go b/serve_imap.go index 58da901..8b2c859 100644 --- a/serve_imap.go +++ b/serve_imap.go @@ -43,7 +43,7 @@ func (session *imap_recv_session) handle(ctx context.Context) error { _ = session.buf_conn.Flush() continue } - fmt.Printf("tag=%#v, cmd=%#v, param=%#v\n", tag, cmd, param) + clog.Debug(fmt.Sprintf("tag=%#v, cmd=%#v, param=%#v", tag, cmd, param)) switch_cmd: switch cmd { case "CAPABILITY": @@ -68,7 +68,7 @@ func (session *imap_recv_session) handle(ctx context.Context) error { _ = session.buf_conn.Flush() break switch_cmd } - fmt.Printf("argumetn=%#v\n", string(argument)) + clog.Debug(fmt.Sprintf("argumetn=%#v", string(argument))) default: _, _ = session.buf_conn.WriteString(line + " TODO i don't know this authentication method\r\n") _ = session.buf_conn.Flush() -- cgit v1.2.3