Skip to content

Commit 9492cab

Browse files
committed
Simplify logging
1 parent 0a61483 commit 9492cab

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

beacon_node/beacon_chain/src/historical_blocks.rs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
137137
// If prune-payloads is set to false, store the block which includes the execution payload
138138
self.store
139139
.block_as_kv_store_ops(&block_root, (*block).clone(), &mut hot_batch)?;
140-
141-
info!(
142-
self.log,
143-
"Storing full block with execution payload";
144-
"block_root" => ?block_root,
145-
"slot" => block.slot(),
146-
);
147140
} else {
148141
let blinded_block = block.clone_as_blinded();
149142
// Store block in the hot database without payload.
@@ -152,14 +145,14 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
152145
&blinded_block,
153146
&mut hot_batch,
154147
);
155-
156-
info!(
157-
self.log,
158-
"Does not store execution payload";
159-
"block_root" => ?block_root,
160-
"slot" => block.slot(),
161-
);
162148
}
149+
150+
info!(
151+
self.log,
152+
"Downloading historical blocks";
153+
"Keep execution payload" => !self.store.get_config().prune_payloads,
154+
);
155+
163156
// Store the blobs too
164157
if let Some(blobs) = maybe_blobs {
165158
new_oldest_blob_slot = Some(block.slot());

0 commit comments

Comments
 (0)