Skip to content

Commit

Permalink
chore: log new node version upon upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Nov 25, 2024
1 parent 3895ac9 commit e40a406
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ pub(crate) async fn helper_upgrade_node_instance(
let res = docker_client.upgrade_node_in_container(container_id).await;

if let Ok(ref new_version) = res {
logging::log!(
"Node binary upgraded to v{} in container {container_id}.",
new_version.as_deref().unwrap_or("[unknown]")
);

// set bin_version to new version obtained
db_client
.update_node_metadata_fields(
Expand Down

0 comments on commit e40a406

Please sign in to comment.