Skip to content

Commit

Permalink
Reduced blob sidecar log verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliusgrigaitis committed Apr 2, 2024
1 parent 5ae9306 commit 0f45e78
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions p2p/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,12 +1301,9 @@ impl<P: Preset> Network<P> {
let blob_identifier = blob_sidecar.as_ref().into();
let blob_sidecar_slot = blob_sidecar.signed_block_header.message.slot;

self.log(
Level::Info,
format_args!(
"received blob from RPC (blob_id: {blob_identifier:?}, slot: {blob_sidecar_slot}, peer_id: {peer_id}, request_id: {request_id})",
),
);
self.log_with_feature(format_args!(
"received blob from RPC (blob_id: {blob_identifier:?}, slot: {blob_sidecar_slot}, peer_id: {peer_id}, request_id: {request_id})",
));

if self.register_new_received_blob_sidecar(blob_identifier, blob_sidecar_slot) {
let block_seen = self
Expand Down Expand Up @@ -1452,13 +1449,9 @@ impl<P: Preset> Network<P> {
let (subnet_id, blob_sidecar) = *data;
let blob_identifier: BlobIdentifier = blob_sidecar.as_ref().into();

self.log(
Level::Info,
format_args!(
"received blob sidecar as gossip in subnet {subnet_id}: \
{blob_identifier:?} from {source}",
),
);
self.log_with_feature(format_args!(
"received blob sidecar as gossip in subnet {subnet_id}: {blob_identifier:?} from {source}",
));

let block_seen = self
.received_block_roots
Expand Down

0 comments on commit 0f45e78

Please sign in to comment.