♻️ refactor(trash): improve trash operation logging

- change debug log level to trace for batch request
- remove debug log for response
- log message subject instead of id after trashing
This commit is contained in:
Jeremiah Russell
2025-10-06 17:03:00 +01:00
committed by Jeremiah Russell
parent adaf2b1e30
commit f42718328e

View File

@@ -54,9 +54,9 @@ impl Trash {
remove_label_ids,
};
log::debug!("{batch_request:#?}");
log::trace!("{batch_request:#?}");
let res = self
let _res = self
.message_list
.hub()
.users()
@@ -66,11 +66,8 @@ impl Trash {
.await
.map_err(Box::new)?;
log::debug!("{res:#?}");
for id in self.message_list.message_ids() {
// log::info!("Message with subject `{subject}` move to trash.");
log::info!("Message with id `{id}` moved to trash.");
for m in self.message_list.messages() {
log::info!("Message with subject `{}` move to trash.", m.subject());
}
Ok(())