updating logging for update
This commit is contained in:
parent
d43fdc06a1
commit
1d0b7157c7
@ -151,18 +151,18 @@ async fn update_vm_request(
|
||||
dtrfs_url: "thisIsMyNewURL".to_string(),
|
||||
dtrfs_sha: "thisIsMyNewSha".to_string(),
|
||||
};
|
||||
info!("Creating VM {req:?}");
|
||||
info!("Updating VM {req:?}");
|
||||
let result = client.update_vm(req).await;
|
||||
match result {
|
||||
Ok(confirmation) => {
|
||||
let confirmation = confirmation.into_inner();
|
||||
if confirmation.error.is_empty() {
|
||||
info!("Got VM confirmation: {confirmation:?}");
|
||||
info!("Got VM update confirmation: {confirmation:?}");
|
||||
} else {
|
||||
warn!("Got VM confirmation error: {}", confirmation.error);
|
||||
warn!("Got VM update confirmation error: {}", confirmation.error);
|
||||
};
|
||||
}
|
||||
Err(e) => log::error!("Could not create vm: {e:?}"),
|
||||
Err(e) => log::error!("Could not update vm: {e:?}"),
|
||||
};
|
||||
Ok(())
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ async fn handle_update_vm_requests(
|
||||
info!("Sending UpdateVmResp: {confirmation:?}");
|
||||
let _ = resp.send(confirmation).await;
|
||||
};
|
||||
warn!("vm request handler is ending");
|
||||
warn!("update vm request handler is ending");
|
||||
}
|
||||
|
||||
async fn send_confirmations_update(
|
||||
|
Loading…
Reference in New Issue
Block a user