From 4856a21836562c1e4cf35e0c8a8ddcf4223ecb70 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 30 May 2020 08:12:43 +0200 Subject: [PATCH] src/client/pull.rs: more verbose logging --- src/client/pull.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/pull.rs b/src/client/pull.rs index 547bcd97..cb2a2537 100644 --- a/src/client/pull.rs +++ b/src/client/pull.rs @@ -137,6 +137,7 @@ async fn pull_snapshot( })?; if manifest_blob.raw_data() == tmp_manifest_blob.raw_data() { + worker.log("nothing changed - skip sync"); return Ok(()); // nothing changed } } @@ -223,9 +224,11 @@ pub async fn pull_snapshot_from( } return Err(err); } + worker.log(format!("sync snapshot {:?} done", snapshot.relative_path())); } else { worker.log(format!("re-sync snapshot {:?}", snapshot.relative_path())); - pull_snapshot(worker, reader, tgt_store.clone(), &snapshot).await? + pull_snapshot(worker, reader, tgt_store.clone(), &snapshot).await?; + worker.log(format!("re-sync snapshot {:?} done", snapshot.relative_path())); } Ok(())