diff --git a/examples/provider-sync.rs b/examples/provider-sync.rs index 666c0b1..c2c9586 100644 --- a/examples/provider-sync.rs +++ b/examples/provider-sync.rs @@ -24,7 +24,6 @@ pub const URL: &str = "https://my.server.com/remote.php/dav/files/john"; pub const USERNAME: &str = "username"; pub const PASSWORD: &str = "secret_password"; -pub const EXAMPLE_TASK_URL: &str = "https://my.server.com/remote.php/dav/calendars/john/6121A0BE-C2E0-4F16-A3FA-658E54E7062A/74439558-CDFF-426C-92CD-ECDDACE971B0.ics"; pub const EXAMPLE_EXISTING_CALENDAR_URL: &str = "https://my.server.com/remote.php/dav/calendars/john/a_calendar_name/"; pub const EXAMPLE_CREATED_CALENDAR_URL: &str = "https://my.server.com/remote.php/dav/calendars/john/a_calendar_that_we_have_created/"; @@ -41,7 +40,6 @@ async fn main() { println!("This will use the following settings:"); println!(" * URL = {}", URL); println!(" * USERNAME = {}", USERNAME); - println!(" * EXAMPLE_TASK_URL = {}", EXAMPLE_TASK_URL); println!(" * EXAMPLE_EXISTING_CALENDAR_URL = {}", EXAMPLE_EXISTING_CALENDAR_URL); println!(" * EXAMPLE_CREATED_CALENDAR_URL = {}", EXAMPLE_CREATED_CALENDAR_URL); pause(); @@ -63,6 +61,8 @@ async fn main() { kitchen_fridge::utils::print_calendar_list(&cals).await; println!("Starting a sync..."); + println!("Depending on your RUST_LOG value, you may see more or less details about the progress."); + // Note that we could use sync_with_feedback() to have better and formatted feedback if provider.sync().await == false { log::warn!("Sync did not complete, see the previous log lines for more info. You can safely start a new sync."); }