mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-25 13:07:18 +00:00
Make less logs for attn with unknown head (#2395)
## Issue Addressed NA ## Proposed Changes I am starting to see a lot of slog-async overflows (i.e., too many logs) on Prater whenever we see attestations for an unknown block. Since these logs are identical (except for peer id) and we expose volume/count of these errors via `metrics::GOSSIP_ATTESTATION_ERRORS_PER_TYPE`, I took the following actions to remove them from `DEBUG` logs: - Push the "Attestation for unknown block" log to trace. - Add a debug log in `search_for_block`. In effect, this should serve as a de-duped version of the previous, downgraded log. ## Additional Info TBC
This commit is contained in:
parent
502402c6b9
commit
93100f221f
@ -797,7 +797,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
|
||||
// TODO: Maintain this attestation and re-process once sync completes
|
||||
// TODO: We then score based on whether we can download the block and re-process.
|
||||
debug!(
|
||||
trace!(
|
||||
self.log,
|
||||
"Attestation for unknown block";
|
||||
"peer_id" => %peer_id,
|
||||
|
@ -554,6 +554,13 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
return;
|
||||
}
|
||||
|
||||
debug!(
|
||||
self.log,
|
||||
"Searching for block";
|
||||
"peer_id" => %peer_id,
|
||||
"block" => %block_hash
|
||||
);
|
||||
|
||||
let request = BlocksByRootRequest {
|
||||
block_roots: VariableList::from(vec![block_hash]),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user