Browse Source

[minor] Logs

github_actions
daladim 5 years ago
parent
commit
b360e52144
  1. 4
      src/utils.rs
  2. 2
      tests/scenarii.rs

4
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) => {

2
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(

Loading…
Cancel
Save