Skip to content

Commit

Permalink
Reduced log noise
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliusgrigaitis committed Apr 26, 2024
1 parent 5281223 commit b7b088a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fork_choice_control/src/mutator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ where
self.spawn_preprocess_head_state_for_next_slot_task();
}
}
Err(error) => warn!("attester slashing rejected (error: {error}, origin: {origin:?})"),
Err(error) => debug!("attester slashing rejected (error: {error}, origin: {origin:?})"),
}

Ok(())
Expand Down Expand Up @@ -1474,7 +1474,7 @@ where

result
.map_err(|error| {
warn!("attester slashing rejected (error: {error}, origin: {origin:?})")
debug!("attester slashing rejected (error: {error}, origin: {origin:?})")
})
.unwrap_or_default()
})
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ impl<P: Preset> Network<P> {
}
NetworkEvent::RPCFailed { peer_id, id, error } => {
self.log(
Level::Warn,
Level::Debug,
format_args!("request {id:?} to peer {peer_id} failed: {error}"),
);
P2pToSync::RequestFailed(peer_id).send(&self.channels.p2p_to_sync_tx);
Expand Down
4 changes: 2 additions & 2 deletions validator/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ impl<P: Preset, W: Wait + Sync> Validator<P, W> {
PoolAdditionOutcome::Accept
}
Err(error) => {
warn!("external voluntary exit rejected (error: {error}, exit: {exit:?})");
debug!("external voluntary exit rejected (error: {error}, exit: {exit:?})");
PoolAdditionOutcome::Reject(PoolRejectionReason::InvalidVoluntaryExit, error)
}
};
Expand Down Expand Up @@ -641,7 +641,7 @@ impl<P: Preset, W: Wait + Sync> Validator<P, W> {
PoolAdditionOutcome::Accept
}
Err(error) => {
warn!(
debug!(
"external attester slashing rejected (error: {error}, slashing: {slashing:?})",
);
PoolAdditionOutcome::Reject(PoolRejectionReason::InvalidAttesterSlashing, error)
Expand Down

0 comments on commit b7b088a

Please sign in to comment.