better debug log
This commit is contained in:
@@ -148,7 +148,10 @@ impl HAClusterTopology {
|
|||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
debug!("Creating NMState: {nmstate:#?}");
|
debug!(
|
||||||
|
"Creating NMState:\n{}",
|
||||||
|
serde_yaml::to_string(&nmstate).unwrap()
|
||||||
|
);
|
||||||
k8s_client
|
k8s_client
|
||||||
.apply(&nmstate, None)
|
.apply(&nmstate, None)
|
||||||
.await
|
.await
|
||||||
@@ -181,7 +184,8 @@ impl HAClusterTopology {
|
|||||||
let bond_config = self.create_bond_configuration(&hostname, &bond_id, config);
|
let bond_config = self.create_bond_configuration(&hostname, &bond_id, config);
|
||||||
|
|
||||||
debug!(
|
debug!(
|
||||||
"Applying NMState bond config for host {}: {bond_config:#?}",
|
"Applying NMState bond config for host {}:\n{}",
|
||||||
|
serde_yaml::to_string(&bond_config).unwrap(),
|
||||||
config.host_id
|
config.host_id
|
||||||
);
|
);
|
||||||
self.k8s_client()
|
self.k8s_client()
|
||||||
|
|||||||
Reference in New Issue
Block a user