Skip to content

Commit

Permalink
Add a few more debug log messages
Browse files Browse the repository at this point in the history
I was trying to debug something and these were helpful.
  • Loading branch information
cgwalters committed Sep 29, 2023
1 parent affee1f commit 935dc6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bootupd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub(crate) fn install(source_root: &str, dest_root: &str, device: &str) -> Resul
let meta = component
.install(&source_root, dest_root, device)
.with_context(|| format!("installing component {}", component.name()))?;
log::info!("Installed {} {}", component.name(), meta.meta.version);
state.installed.insert(component.name().into(), meta);
}

Expand Down
2 changes: 2 additions & 0 deletions src/efi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ impl Efi {
if !status.success() {
anyhow::bail!("Failed to unmount {mount:?}: {status:?}");
}
log::trace!("Unmounted");
}
Ok(())
}
Expand Down Expand Up @@ -261,6 +262,7 @@ impl Component for Efi {
} else {
anyhow::bail!("No update metadata for component {} found", self.name());
};
log::debug!("Found metadata {}", meta.version);
let srcdir_name = component_updatedirname(self);
let ft = crate::filetree::FileTree::new_from_dir(&src_root.sub_dir(&srcdir_name)?)?;
let destdir = &self.ensure_mounted_esp(Path::new(dest_root))?;
Expand Down

0 comments on commit 935dc6b

Please sign in to comment.