nzr-virt: sprinkle more debug

This commit is contained in:
snow flurry 2024-08-15 00:35:31 -07:00
parent 7a9659eb9e
commit 5040bc7b87

View file

@ -209,6 +209,8 @@ impl Volume {
}
}
tracing::debug!("Generating virt stream");
let stream = {
let virt_conn = cloned.get_connect().map_err(PoolError::VirtError)?;
let cloned = cloned.clone();
@ -225,6 +227,8 @@ impl Volume {
let img_size = src_img.metadata().unwrap().len();
tracing::debug!("Informing virt we want to start uploading");
{
let stream = stream.clone();
let cloned = cloned.clone();
@ -242,6 +246,8 @@ impl Volume {
let stream_fh = src_img.try_clone().map_err(PoolError::FileError)?;
tracing::debug!("Actually uploading!");
Self::upload_img(stream_fh, stream).await?;
Ok(Self {