Skip to content

Commit 5550b7e

Browse files
committed
boundimage: Add some tracing::debug
To debug things. Signed-off-by: Colin Walters <[email protected]>
1 parent 5362c9b commit 5550b7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/boundimage.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub(crate) fn pull_bound_images(sysroot: &SysrootLock, deployment: &Deployment)
3434
#[context("parse bound image spec dir")]
3535
fn parse_spec_dir(root: &Dir, spec_dir: &str) -> Result<Vec<BoundImage>> {
3636
let Some(bound_images_dir) = root.open_dir_optional(spec_dir)? else {
37+
tracing::debug!("Missing {spec_dir}");
3738
return Ok(Default::default());
3839
};
3940
// And open a view of the dir that uses RESOLVE_IN_ROOT so we
@@ -107,6 +108,7 @@ fn parse_container_file(file_contents: &tini::Ini) -> Result<BoundImage> {
107108

108109
#[context("pull bound images")]
109110
fn pull_images(_deployment_root: &Dir, bound_images: Vec<BoundImage>) -> Result<()> {
111+
tracing::debug!("Pulling bound images: {}", bound_images.len());
110112
//TODO: do this in parallel
111113
for bound_image in bound_images {
112114
let mut task = Task::new("Pulling bound image", "/usr/bin/podman")

0 commit comments

Comments
 (0)