summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-02-21 17:47:48 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-02-22 10:47:37 +0100
commitb23b9365552bd636563359efc4548af59ddb25ef (patch)
tree644d92e0c2cb220bc938169c288ad3b232e5a10c
parent171145113e922308790fb2c6c415784cdaa112c3 (diff)
fixup! fixup! Add more trace output
-rw-r--r--lib/domain/libimagmail/src/mailtree.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/domain/libimagmail/src/mailtree.rs b/lib/domain/libimagmail/src/mailtree.rs
index 046ab40a..8d2a1b1d 100644
--- a/lib/domain/libimagmail/src/mailtree.rs
+++ b/lib/domain/libimagmail/src/mailtree.rs
@@ -72,7 +72,7 @@ fn fill_arena_with<'a>(arena: &mut Arena<String>, store: &'a MailStoreWithConnec
drop(root);
- store.connection().execute(|db| {
+ let ids = store.connection().execute(|db| {
let q = format!("thread:{}", root_thread_id);
trace!("Executing query: {}", q);
let query = db.create_query(&q)?;
@@ -102,7 +102,11 @@ fn fill_arena_with<'a>(arena: &mut Arena<String>, store: &'a MailStoreWithConnec
trace!("Query '{:?}' resulted in: {:?}", query, r);
r
- })?
+ })?;
+
+ trace!("IDs = {:?}", ids);
+
+ ids
.into_iter()
.map(|id: String| {
trace!("Trying to get: {:?}", id);