diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-03-01 17:34:53 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-03-01 19:20:27 +0100 |
commit | 47700a2fcae409aeeb085a6b2a8df16619c86eb5 (patch) | |
tree | fde18dcdded0027409097852c4f677f1e9b8933b | |
parent | d3f8706fa77c5430769f7452d172ce834811ee7b (diff) |
Add more trace output
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | bin/domain/imag-todo/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs index 0f52a095..12712f09 100644 --- a/bin/domain/imag-todo/src/lib.rs +++ b/bin/domain/imag-todo/src/lib.rs @@ -316,7 +316,9 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul } }) .and_then_ok(|entry| { + trace!("Processing {}", entry.get_location()); if !rt.output_is_pipe() && (show_hidden || filter_hidden.filter(&entry)?) { + trace!("Printing {}", entry.get_location()); if let Err(e) = viewer.view_entry(&entry, &mut rt.stdout()) { use libimagentryview::error::Error; match e { @@ -334,6 +336,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul }; if rt.ids_from_stdin() { + trace!("Getting IDs from stdin"); let iter = rt.ids::<crate::ui::PathProvider>()? .ok_or_else(|| err_msg("No ids supplied"))? .into_iter() @@ -343,6 +346,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul process(&rt, matcher, show_hidden, iter) } else { + trace!("Getting IDs from store"); let iter = rt.store().get_todos()? .into_get_iter() .map_inner_ok_or_else(|| err_msg("Did not find one entry")); |