aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mod.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-03 16:52:31 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-03 16:52:31 +0100
commit74686ebb778b740ccfccfbf61ccd24628f60e9d0 (patch)
tree0eefb4982d14499b47c7d57c7256004500f7edb3 /src/imap/mod.rs
parentb91c64920d7454d50b60ad3abb58fad9d09f0511 (diff)
downloadaerogramme-74686ebb778b740ccfccfbf61ccd24628f60e9d0.tar.gz
aerogramme-74686ebb778b740ccfccfbf61ccd24628f60e9d0.zip
append ignore dates instead of failing
Diffstat (limited to 'src/imap/mod.rs')
-rw-r--r--src/imap/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imap/mod.rs b/src/imap/mod.rs
index 0b5555a..aac1fd3 100644
--- a/src/imap/mod.rs
+++ b/src/imap/mod.rs
@@ -89,7 +89,7 @@ async fn client_wrapper(ctx: ClientContext) {
let addr = ctx.addr.clone();
match client(ctx).await {
Ok(()) => {
- tracing::info!("closing successful session for {:?}", addr);
+ tracing::debug!("closing successful session for {:?}", addr);
}
Err(e) => {
tracing::error!("closing errored session for {:?}: {}", addr, e);
@@ -127,7 +127,9 @@ async fn client(mut ctx: ClientContext) -> Result<()> {
Some(cmd_recv) => cmd_recv,
};
+ tracing::debug!(cmd=?cmd, sock=%ctx.addr, "command");
let maybe_response = session.command(cmd).await;
+ tracing::debug!(cmd=?maybe_response.completion, sock=%ctx.addr, "response");
match resp_tx.send(maybe_response) {
Err(_) => break,