Skip to content

Commit

Permalink
Merge pull request #5014 from stacks-network/chore/move-signer-logs-t…
Browse files Browse the repository at this point in the history
…o-info

Chore/move signer logs to info
  • Loading branch information
wileyj authored Jul 30, 2024
2 parents 74b0a38 + 5996c4a commit 98b7d3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion stacks-signer/src/runloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl<Signer: SignerTrait<T>, T: StacksMessageCodec + Clone + Send + Debug> RunLo
self.refresh_signer_config(next_reward_cycle);
}
} else {
debug!("Received a new burnchain block height ({current_burn_block_height}) but not in prepare phase.";
info!("Received a new burnchain block height ({current_burn_block_height}) but not in prepare phase.";
"reward_cycle" => reward_cycle_info.reward_cycle,
"reward_cycle_length" => reward_cycle_info.reward_cycle_length,
"prepare_phase_block_length" => reward_cycle_info.prepare_phase_block_length,
Expand Down
6 changes: 3 additions & 3 deletions stacks-signer/src/v0/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl SignerTrait<SignerMessage> for Signer {
burn_header_hash,
received_time,
} => {
debug!("{self}: Receved a new burn block event for block height {burn_height}");
info!("{self}: Received a new burn block event for block height {burn_height}");
if let Err(e) =
self.signer_db
.insert_burn_block(burn_header_hash, *burn_height, received_time)
Expand Down Expand Up @@ -287,7 +287,7 @@ impl Signer {
return;
}

debug!(
info!(
"{self}: received a block proposal for a new block. Submit block for validation. ";
"signer_sighash" => %signer_signature_hash,
"block_id" => %block_proposal.block.block_id(),
Expand Down Expand Up @@ -388,7 +388,7 @@ impl Signer {

/// Handle the block validate response returned from our prior calls to submit a block for validation
fn handle_block_validate_response(&mut self, block_validate_response: &BlockValidateResponse) {
debug!("{self}: Received a block validate response: {block_validate_response:?}");
info!("{self}: Received a block validate response: {block_validate_response:?}");
let (response, block_info) = match block_validate_response {
BlockValidateResponse::Ok(block_validate_ok) => {
crate::monitoring::increment_block_validation_responses(true);
Expand Down
8 changes: 4 additions & 4 deletions stacks-signer/src/v1/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl SignerTrait<SignerMessage> for Signer {
};
match event {
SignerEvent::BlockValidationResponse(block_validate_response) => {
debug!("{self}: Received a block proposal result from the stacks node...");
info!("{self}: Received a block proposal result from the stacks node...");
self.handle_block_validate_response(
stacks_client,
block_validate_response,
Expand Down Expand Up @@ -244,7 +244,7 @@ impl SignerTrait<SignerMessage> for Signer {
burn_header_hash,
received_time,
} => {
debug!("{self}: Receved a new burn block event for block height {burn_height}");
info!("{self}: Received a new burn block event for block height {burn_height}");
if let Err(e) =
self.signer_db
.insert_burn_block(burn_header_hash, *burn_height, received_time)
Expand Down Expand Up @@ -703,7 +703,7 @@ impl Signer {
};
self.handle_packets(stacks_client, res, &[packet], current_reward_cycle);
}
debug!(
info!(
"{self}: Received a block validate response";
"block_hash" => block_info.block.header.block_hash(),
"valid" => block_info.valid,
Expand Down Expand Up @@ -1130,7 +1130,7 @@ impl Signer {
match operation_result {
OperationResult::Sign(signature) => {
crate::monitoring::increment_operation_results("sign");
debug!("{self}: Received signature result");
info!("{self}: Received signature result");
self.process_signature(signature);
}
OperationResult::SignTaproot(_) => {
Expand Down

0 comments on commit 98b7d3d

Please sign in to comment.