From 77c6a0e2d99363b1043aec9a74ef04ff722e1cc8 Mon Sep 17 00:00:00 2001 From: ASuciuX Date: Fri, 26 Jul 2024 14:17:10 +0300 Subject: [PATCH 1/4] move main signer messages from debug to info --- stacks-signer/src/runloop.rs | 2 +- stacks-signer/src/v0/signer.rs | 6 +++--- stacks-signer/src/v1/signer.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/stacks-signer/src/runloop.rs b/stacks-signer/src/runloop.rs index 6795f0cfee..3145cd6f54 100644 --- a/stacks-signer/src/runloop.rs +++ b/stacks-signer/src/runloop.rs @@ -365,7 +365,7 @@ impl, 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, diff --git a/stacks-signer/src/v0/signer.rs b/stacks-signer/src/v0/signer.rs index 93927b03fd..37ba216aa2 100644 --- a/stacks-signer/src/v0/signer.rs +++ b/stacks-signer/src/v0/signer.rs @@ -153,7 +153,7 @@ impl SignerTrait for Signer { burn_header_hash, received_time, } => { - debug!("{self}: Receved a new burn block event for block height {burn_height}"); + info!("{self}: Receved 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) @@ -251,7 +251,7 @@ impl Signer { block_proposal: &BlockProposal, miner_pubkey: &Secp256k1PublicKey, ) { - debug!("{self}: Received a block proposal: {block_proposal:?}"); + info!("{self}: Received a block proposal: {block_proposal:?}"); if block_proposal.reward_cycle != self.reward_cycle { // We are not signing for this reward cycle. Ignore the block. debug!( @@ -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); diff --git a/stacks-signer/src/v1/signer.rs b/stacks-signer/src/v1/signer.rs index f78f3b9e29..83a0c9a39b 100644 --- a/stacks-signer/src/v1/signer.rs +++ b/stacks-signer/src/v1/signer.rs @@ -201,7 +201,7 @@ impl SignerTrait 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, @@ -244,7 +244,7 @@ impl SignerTrait 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) @@ -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, From 861bff076b051e0338b37dacbe0a17cd1b90b3b3 Mon Sep 17 00:00:00 2001 From: ASuciuX Date: Fri, 26 Jul 2024 14:22:00 +0300 Subject: [PATCH 2/4] moved from info to debug stacks block related logs --- stacks-signer/src/v0/signer.rs | 6 +++--- stacks-signer/src/v1/signer.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stacks-signer/src/v0/signer.rs b/stacks-signer/src/v0/signer.rs index 37ba216aa2..72c8cc4dfe 100644 --- a/stacks-signer/src/v0/signer.rs +++ b/stacks-signer/src/v0/signer.rs @@ -153,7 +153,7 @@ impl SignerTrait for Signer { burn_header_hash, received_time, } => { - info!("{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) @@ -251,7 +251,7 @@ impl Signer { block_proposal: &BlockProposal, miner_pubkey: &Secp256k1PublicKey, ) { - info!("{self}: Received a block proposal: {block_proposal:?}"); + debug!("{self}: Received a block proposal: {block_proposal:?}"); if block_proposal.reward_cycle != self.reward_cycle { // We are not signing for this reward cycle. Ignore the block. debug!( @@ -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) { - info!("{self}: Received a block validate response: {block_validate_response:?}"); + debug!("{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); diff --git a/stacks-signer/src/v1/signer.rs b/stacks-signer/src/v1/signer.rs index 83a0c9a39b..bd4b36f489 100644 --- a/stacks-signer/src/v1/signer.rs +++ b/stacks-signer/src/v1/signer.rs @@ -201,7 +201,7 @@ impl SignerTrait for Signer { }; match event { SignerEvent::BlockValidationResponse(block_validate_response) => { - info!("{self}: Received a block proposal result from the stacks node..."); + debug!("{self}: Received a block proposal result from the stacks node..."); self.handle_block_validate_response( stacks_client, block_validate_response, @@ -703,7 +703,7 @@ impl Signer { }; self.handle_packets(stacks_client, res, &[packet], current_reward_cycle); } - info!( + debug!( "{self}: Received a block validate response"; "block_hash" => block_info.block.header.block_hash(), "valid" => block_info.valid, From 23876fb3d8d5ab11c4f0eaad1e7f1254edbd2c76 Mon Sep 17 00:00:00 2001 From: ASuciuX Date: Mon, 29 Jul 2024 18:50:03 +0300 Subject: [PATCH 3/4] move stacks block validate response to info logs from debug --- stacks-signer/src/v0/signer.rs | 6 +++--- stacks-signer/src/v1/signer.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stacks-signer/src/v0/signer.rs b/stacks-signer/src/v0/signer.rs index 72c8cc4dfe..b38467d454 100644 --- a/stacks-signer/src/v0/signer.rs +++ b/stacks-signer/src/v0/signer.rs @@ -251,7 +251,7 @@ impl Signer { block_proposal: &BlockProposal, miner_pubkey: &Secp256k1PublicKey, ) { - debug!("{self}: Received a block proposal: {block_proposal:?}"); + info!("{self}: Received a block proposal: {block_proposal:?}"); if block_proposal.reward_cycle != self.reward_cycle { // We are not signing for this reward cycle. Ignore the block. debug!( @@ -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(), @@ -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); diff --git a/stacks-signer/src/v1/signer.rs b/stacks-signer/src/v1/signer.rs index bd4b36f489..18e31946c0 100644 --- a/stacks-signer/src/v1/signer.rs +++ b/stacks-signer/src/v1/signer.rs @@ -201,7 +201,7 @@ impl SignerTrait 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, @@ -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, @@ -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(_) => { From d37f2bc28bd7696fb8c69ba9c63db65b896ed605 Mon Sep 17 00:00:00 2001 From: ASuciuX Date: Tue, 30 Jul 2024 21:22:40 +0300 Subject: [PATCH 4/4] move to debug block proposal log --- stacks-signer/src/v0/signer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks-signer/src/v0/signer.rs b/stacks-signer/src/v0/signer.rs index b38467d454..a4716e4c80 100644 --- a/stacks-signer/src/v0/signer.rs +++ b/stacks-signer/src/v0/signer.rs @@ -251,7 +251,7 @@ impl Signer { block_proposal: &BlockProposal, miner_pubkey: &Secp256k1PublicKey, ) { - info!("{self}: Received a block proposal: {block_proposal:?}"); + debug!("{self}: Received a block proposal: {block_proposal:?}"); if block_proposal.reward_cycle != self.reward_cycle { // We are not signing for this reward cycle. Ignore the block. debug!(