♻️ 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:
committed by
Jeremiah Russell
parent
adaf2b1e30
commit
f42718328e
11
src/trash.rs
11
src/trash.rs
@@ -54,9 +54,9 @@ impl Trash {
|
|||||||
remove_label_ids,
|
remove_label_ids,
|
||||||
};
|
};
|
||||||
|
|
||||||
log::debug!("{batch_request:#?}");
|
log::trace!("{batch_request:#?}");
|
||||||
|
|
||||||
let res = self
|
let _res = self
|
||||||
.message_list
|
.message_list
|
||||||
.hub()
|
.hub()
|
||||||
.users()
|
.users()
|
||||||
@@ -66,11 +66,8 @@ impl Trash {
|
|||||||
.await
|
.await
|
||||||
.map_err(Box::new)?;
|
.map_err(Box::new)?;
|
||||||
|
|
||||||
log::debug!("{res:#?}");
|
for m in self.message_list.messages() {
|
||||||
|
log::info!("Message with subject `{}` move to trash.", m.subject());
|
||||||
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.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user