Skip to content

Commit

Permalink
Report roles and address on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSoliman committed Sep 9, 2024
1 parent fbf0413 commit 890ef57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ impl Node {

// My Node ID is set
metadata_writer.set_my_node_id(my_node_id);
info!("My Node ID is {}", my_node_config.current_generation);
info!(
roles = %my_node_config.roles,
address = %my_node_config.address,
"My Node ID is {}", my_node_config.current_generation);

let bifrost = self.bifrost.handle();

Expand Down
2 changes: 2 additions & 0 deletions crates/types/src/nodes_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ impl Versioned for NodesConfiguration {
PartialOrd,
serde::Serialize,
serde::Deserialize,
strum::Display,
)]
#[serde(rename_all = "kebab-case")]
#[strum(serialize_all = "kebab-case")]
pub enum StorageState {
/// The node is not expected to be a member in any write set and the node will self-provision
/// its log-store to `Disabled` once it's written its own storage marker on disk.
Expand Down

0 comments on commit 890ef57

Please sign in to comment.