summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-06 22:39:13 +0100
committerGitHub <noreply@github.com>2018-02-06 22:39:13 +0100
commitda74896248dae44f5e17c76dba328a756d53a0e0 (patch)
treeb2b2bd8e32251ae0c9cb2285424e87b0343eed54
parent1b588172dd61e0079f3fc39d3d996384316a41e0 (diff)
parentf44f13e23a736b683e4f78bbdcf3c272fe70cdf7 (diff)
downloadimag-da74896248dae44f5e17c76dba328a756d53a0e0.zip
imag-da74896248dae44f5e17c76dba328a756d53a0e0.tar.gz
Merge pull request #1258 from matthiasbeyer/imag-log/dont-list-non-log-entries
Do not list entries which are not "log" entries
-rw-r--r--bin/domain/imag-log/src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/domain/imag-log/src/main.rs b/bin/domain/imag-log/src/main.rs
index 1cb7291..b1e8e1c 100644
--- a/bin/domain/imag-log/src/main.rs
+++ b/bin/domain/imag-log/src/main.rs
@@ -119,6 +119,11 @@ fn show(rt: &Runtime) {
for iter in iters {
for element in iter {
let e = element.map_err_trace_exit_unwrap(1);
+
+ if !e.is_log().map_err_trace_exit_unwrap(1) {
+ continue;
+ }
+
let id = e.diary_id().map_err_trace_exit_unwrap(1);
println!("{dname: >10} - {y: >4}-{m:0>2}-{d:0>2}T{H:0>2}:{M:0>2} - {text}",
dname = id.diary_name(),