diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-02-21 17:15:36 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-02-21 17:15:36 +0100 |
commit | 748e219c33020b2b394dcc3740eade4266160690 (patch) | |
tree | 8ab8134681d5f7ec5d79d6b8517b4d3a483dd9d9 | |
parent | e0809324c810bcfc7ce9edc3da8c5ce953163447 (diff) |
fixup! fixup! Add more trace output
-rw-r--r-- | lib/domain/libimagmail/src/mailtree.rs | 11 |
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); |