Skip to content

Commit

Permalink
nydus-image: add log info in diff build
Browse files Browse the repository at this point in the history
Signed-off-by: gexuyang <gexuyang@linux.alibaba.com>
  • Loading branch information
gexuyang committed Mar 25, 2022
1 parent ab9cce7 commit 0c0fa92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/nydus-image/builder/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,13 @@ impl DiffBuilder {
let ctx = Arc::new(ctx.clone());
let hint_path_idx = idx + base;
let hint_path = paths[hint_path_idx].clone();
let snapshot_path = paths[idx].clone();
let chunk_dict = chunk_dict.clone();
let worker = thread::spawn(move || -> Result<(Option<BlobContext>, ChunkMap)> {
info!("[{}] diff building with hint {:?}", idx, hint_path);
info!(
"[{}: {:?}] diff building with hint {:?}",
idx, snapshot_path, hint_path
);

let snapshot_idx = idx as u32;
let mut blob_nodes = walk_all(ctx.as_ref(), hint_path.clone(), hint_path)?;
Expand Down

0 comments on commit 0c0fa92

Please sign in to comment.