From b360e521446cdee36c3a1155b670e3bd27e978af Mon Sep 17 00:00:00 2001 From: daladim Date: Mon, 5 Apr 2021 23:01:44 +0200 Subject: [PATCH] [minor] Logs --- src/utils.rs | 4 ++-- tests/scenarii.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index bd8a0ea..825a319 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -67,7 +67,7 @@ where C: CompleteCalendar, { for (id, cal) in cals { - println!("CAL {}", id); + println!("CAL {} ({})", cal.lock().unwrap().name(), id); match cal.lock().unwrap().get_items().await { Err(_err) => continue, Ok(map) => { @@ -85,7 +85,7 @@ where C: DavCalendar, { for (id, cal) in cals { - println!("CAL {}", id); + println!("CAL {} ({})", cal.lock().unwrap().name(), id); match cal.lock().unwrap().get_item_version_tags().await { Err(_err) => continue, Ok(map) => { diff --git a/tests/scenarii.rs b/tests/scenarii.rs index 3fcb632..8a5d8de 100644 --- a/tests/scenarii.rs +++ b/tests/scenarii.rs @@ -639,7 +639,7 @@ async fn get_or_insert_calendar(source: &mut Cache, id: &CalendarId) match source.get_calendar(id).await { Some(cal) => Ok(cal), None => { - let new_name = format!("Calendar for ID {}", id); + let new_name = format!("Test calendar for ID {}", id); let supported_components = SupportedComponents::TODO; source.create_calendar(