Skip to content

Commit 5b09e44

Browse files
committed
Downgrade re-org log to INFO
1 parent 05bc99e commit 5b09e44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

beacon_node/beacon_chain/src/canonical_head.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use fork_choice::{
4848
};
4949
use itertools::process_results;
5050
use parking_lot::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
51-
use slog::{crit, debug, error, warn, Logger};
51+
use slog::{crit, debug, error, info, warn, Logger};
5252
use slot_clock::SlotClock;
5353
use state_processing::AllCaches;
5454
use std::sync::Arc;
@@ -1212,7 +1212,7 @@ fn detect_reorg<E: EthSpec>(
12121212
&metrics::FORK_CHOICE_REORG_DISTANCE,
12131213
reorg_distance.as_u64() as i64,
12141214
);
1215-
warn!(
1215+
info!(
12161216
log,
12171217
"Beacon chain re-org";
12181218
"previous_head" => ?old_block_root,

book/src/late-block-re-orgs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ A pair of messages at `INFO` level will be logged if a re-org opportunity is det
5353
This should be followed shortly after by a `WARN` log indicating that a re-org occurred. This is
5454
expected and normal:
5555

56-
> WARN Beacon chain re-org reorg_distance: 1, new_slot: 1105320, new_head: 0x72791549e4ca792f91053bc7cf1e55c6fbe745f78ce7a16fc3acb6f09161becd, previous_slot: 1105319, previous_head: 0xf64f8e5ed617dc18c1e759dab5d008369767c3678416dac2fe1d389562842b49
56+
> INFO Beacon chain re-org reorg_distance: 1, new_slot: 1105320, new_head: 0x72791549e4ca792f91053bc7cf1e55c6fbe745f78ce7a16fc3acb6f09161becd, previous_slot: 1105319, previous_head: 0xf64f8e5ed617dc18c1e759dab5d008369767c3678416dac2fe1d389562842b49
5757
5858
In case a re-org is not viable (which should be most of the time), Lighthouse will just propose a
5959
block as normal and log the reason the re-org was not attempted at debug level:

0 commit comments

Comments
 (0)