[minor] Logs

This commit is contained in:
daladim 2021-03-02 00:20:47 +01:00
parent 4eb1ae2fb1
commit 4cc882039b

View file

@ -60,6 +60,7 @@ where
/// In case of conflicts (the same item has been modified on both ends since the last sync, `server` always wins) /// In case of conflicts (the same item has been modified on both ends since the last sync, `server` always wins)
pub async fn sync(&mut self) -> Result<(), Box<dyn Error>> { pub async fn sync(&mut self) -> Result<(), Box<dyn Error>> {
let last_sync = self.local.get_last_sync(); let last_sync = self.local.get_last_sync();
log::info!("Starting a sync. Last sync was at {:?}", last_sync);
let cals_server = self.server.get_calendars_mut().await?; let cals_server = self.server.get_calendars_mut().await?;
for cal_server in cals_server { for cal_server in cals_server {