diff options
-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() |