diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-16 11:31:02 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-16 11:31:02 +0800 |
commit | 01f45d1a42d5bfa9500edb2b8f14cfc9cff64e5b (patch) | |
tree | af40e9d8c63c95f758ae374b45b4907ba118a016 | |
parent | IMAP: Add CAPABILITY, and a stub for AUTHENTICATE (diff) | |
download | maild-01f45d1a42d5bfa9500edb2b8f14cfc9cff64e5b.tar.gz maild-01f45d1a42d5bfa9500edb2b8f14cfc9cff64e5b.tar.zst maild-01f45d1a42d5bfa9500edb2b8f14cfc9cff64e5b.zip |
IMAP: Use clog.Debug instead of fmt.Printf
-rw-r--r-- | serve_imap.go | 4 |
1 files 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() |