Skip to content

Commit

Permalink
Chore(ICSUP-3808): Improve HostOS console logging during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbattat committed Mar 14, 2024
1 parent ea79d85 commit 541a311
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions rs/orchestrator/src/registration.rs
Expand Up @@ -135,6 +135,8 @@ impl NodeRegistration {
let add_node_payload = self.assemble_add_node_message().await;

while !self.is_node_registered().await {
warn!(self.log, "Node registration failed. Trying again.");
UtilityCommand::notify_host("Node registration failed. Trying again.", 1);
match self.signer.get() {
Ok(signer) => {
let nns_url = self
Expand Down Expand Up @@ -543,9 +545,10 @@ impl NodeRegistration {
{
Ok(_) => true,
Err(e) => {
warn!(
self.log,
"Node keys are not setup at version {}: {:?}", latest_version, e
warn!(self.log, "Node keys are not setup: {:?}", e);
UtilityCommand::notify_host(
format!("Node keys are not setup: {:?}", e).as_str(),
1,
);
false
}
Expand Down
1 change: 0 additions & 1 deletion rs/orchestrator/src/signer.rs
Expand Up @@ -35,7 +35,6 @@ impl Signer for Hsm {
}
}

/// Signer for https://dfinity.atlassian.net/browse/NODE-439
pub struct NodeProviderSigner {
keypair: Secp256k1KeyPair,
}
Expand Down

0 comments on commit 541a311

Please sign in to comment.