diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-02-21 17:47:48 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-02-22 10:26:48 +0100 |
commit | f1a33465ba9734a77ecac99c940ff7fcd1c0ec93 (patch) | |
tree | a0469ea28db04a18810be04acc9c3b65a05475dd | |
parent | c17501e22d1950c9da41db8e24187ba8c4da2e3f (diff) |
fixup! fixup! Add more trace output
-rw-r--r-- | lib/domain/libimagmail/src/mail.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/domain/libimagmail/src/mail.rs b/lib/domain/libimagmail/src/mail.rs index 89553791..1f001aab 100644 --- a/lib/domain/libimagmail/src/mail.rs +++ b/lib/domain/libimagmail/src/mail.rs @@ -83,6 +83,7 @@ impl LoadedMail { .read_string("mail.id")? .ok_or_else(|| format_err!("Missing header: 'mail.id' in {}", entry.get_location()))?; + trace!("Loading {} with id: {}", entry.get_location(), id); conn.execute(|db| { if let Some(msg) = db.find_message(&id)? { let id = msg.id().into_owned(); @@ -104,8 +105,10 @@ impl LoadedMail { tags, }; + trace!("Loaded {:?}", lm); Ok(Some(lm)) } else { + trace!("Loaded None"); Ok(None) } }) |