summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-04-27 01:33:04 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-04-27 01:33:04 +0200
commit9c467d046258fbad94227a1eaa5506c6103b5afc (patch)
tree62ac109ef0af7927187d4fa7e590b7decb3c3f81
parent29b04a269a96e22353728f56ba33b3e331bb1f61 (diff)
downloadimag-9c467d046258fbad94227a1eaa5506c6103b5afc.tar.gz
imag-9c467d046258fbad94227a1eaa5506c6103b5afc.tar.xz
-rw-r--r--bin/domain/imag-contact/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/domain/imag-contact/src/main.rs b/bin/domain/imag-contact/src/main.rs
index bc950fa1..bd071800 100644
--- a/bin/domain/imag-contact/src/main.rs
+++ b/bin/domain/imag-contact/src/main.rs
@@ -116,6 +116,7 @@ fn main() {
fn list(rt: &Runtime) {
let scmd = rt.cli().subcommand_matches("list").unwrap();
let list_format = get_contact_print_format("contact.list_format", rt, &scmd);
+ debug!("List format: {:?}", list_format);
let iterator = rt
.store()
@@ -134,6 +135,7 @@ fn list(rt: &Runtime) {
.enumerate();
if scmd.is_present("json") {
+ debug!("Listing as JSON");
let v : Vec<DeserVcard> = iterator.map(|tpl| tpl.1).collect();
match ::serde_json::to_string(&v) {
@@ -144,6 +146,7 @@ fn list(rt: &Runtime) {
}
}
} else {
+ debug!("Not listing as JSON");
let output = rt.stdout();
let mut output = output.lock();
iterator