Skip to content

Commit

Permalink
make logging in start saga more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jul 8, 2024
1 parent a6478c0 commit 6829dd5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions nexus/src/app/sagas/instance_update/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,15 @@ async fn siu_fetch_state_and_start_real_saga(
osagactx.log(),
"instance update: starting real update saga...";
"instance_id" => %authz_instance.id(),
"new_runtime_state" => ?update.new_runtime,
"network_config_update" => ?update.network_config,
"destroy_active_vmm" => ?update.destroy_active_vmm,
"destroy_target_vmm" => ?update.destroy_target_vmm,
"deprovision" => update.deprovision,
"current.runtime_state" => ?state.instance.runtime(),
"current.migration" => ?state.migration,
"current.active_vmm" => ?state.active_vmm,
"current.target_vmm" => ?state.target_vmm,
"update.new_runtime_state" => ?update.new_runtime,
"update.network_config_update" => ?update.network_config,
"update.destroy_active_vmm" => ?update.destroy_active_vmm,
"update.destroy_target_vmm" => ?update.destroy_target_vmm,
"update.deprovision" => update.deprovision,
);
osagactx
.nexus()
Expand All @@ -192,6 +196,10 @@ async fn siu_fetch_state_and_start_real_saga(
osagactx.log(),
"instance update: no updates required, releasing lock.";
"instance_id" => %authz_instance.id(),
"current.runtime_state" => ?state.instance.runtime(),
"current.migration" => ?state.migration,
"current.active_vmm" => ?state.active_vmm,
"current.target_vmm" => ?state.target_vmm,
);
super::unlock_instance_inner(
&serialized_authn,
Expand Down

0 comments on commit 6829dd5

Please sign in to comment.