summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-02-21 17:15:36 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-02-21 17:15:36 +0100
commit748e219c33020b2b394dcc3740eade4266160690 (patch)
tree8ab8134681d5f7ec5d79d6b8517b4d3a483dd9d9
parente0809324c810bcfc7ce9edc3da8c5ce953163447 (diff)
fixup! fixup! Add more trace output
-rw-r--r--lib/domain/libimagmail/src/mailtree.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/domain/libimagmail/src/mailtree.rs b/lib/domain/libimagmail/src/mailtree.rs
index 13ef1209..37926a47 100644
--- a/lib/domain/libimagmail/src/mailtree.rs
+++ b/lib/domain/libimagmail/src/mailtree.rs
@@ -55,14 +55,17 @@ impl Mailtree {
fn fill_arena_with<'a>(arena: &mut Arena<String>, store: &'a MailStoreWithConnection<'a>, root: LoadedMail) -> Result<NodeId> {
trace!("Filling arena starting at: {}", root.get_id());
- let root_id = root.get_id().clone();
- let root_node = arena.new_node(root_id);
- let root_thread_id = root.get_thread_id().to_owned();
- drop(root);
+ let root_id = root.get_id().clone();
trace!("root_id = {:?}", root_id);
+
+ let root_node = arena.new_node(root_id);
trace!("root_node = {:?}", root_node);
+
+ let root_thread_id = root.get_thread_id().to_owned();
trace!("root_thread_id = {:?}", root_thread_id);
+ drop(root);
+
store.connection().execute(|db| {
let q = format!("thread:{}", root_thread_id);