mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Downgrade re-org log to INFO (#6220)
* Downgrade re-org log to INFO * Update book Co-authored-by: chonghe <44791194+chong-he@users.noreply.github.com>
This commit is contained in:
@@ -48,7 +48,7 @@ use fork_choice::{
|
|||||||
};
|
};
|
||||||
use itertools::process_results;
|
use itertools::process_results;
|
||||||
use parking_lot::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
|
use parking_lot::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||||
use slog::{crit, debug, error, warn, Logger};
|
use slog::{crit, debug, error, info, warn, Logger};
|
||||||
use slot_clock::SlotClock;
|
use slot_clock::SlotClock;
|
||||||
use state_processing::AllCaches;
|
use state_processing::AllCaches;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
@@ -1212,7 +1212,7 @@ fn detect_reorg<E: EthSpec>(
|
|||||||
&metrics::FORK_CHOICE_REORG_DISTANCE,
|
&metrics::FORK_CHOICE_REORG_DISTANCE,
|
||||||
reorg_distance.as_u64() as i64,
|
reorg_distance.as_u64() as i64,
|
||||||
);
|
);
|
||||||
warn!(
|
info!(
|
||||||
log,
|
log,
|
||||||
"Beacon chain re-org";
|
"Beacon chain re-org";
|
||||||
"previous_head" => ?old_block_root,
|
"previous_head" => ?old_block_root,
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ A pair of messages at `INFO` level will be logged if a re-org opportunity is det
|
|||||||
|
|
||||||
> INFO Proposing block to re-org current head head_to_reorg: 0xf64f…2b49, slot: 1105320
|
> INFO Proposing block to re-org current head head_to_reorg: 0xf64f…2b49, slot: 1105320
|
||||||
|
|
||||||
This should be followed shortly after by a `WARN` log indicating that a re-org occurred. This is
|
This should be followed shortly after by a `INFO` log indicating that a re-org occurred. This is
|
||||||
expected and normal:
|
expected and normal:
|
||||||
|
|
||||||
> WARN Beacon chain re-org reorg_distance: 1, new_slot: 1105320, new_head: 0x72791549e4ca792f91053bc7cf1e55c6fbe745f78ce7a16fc3acb6f09161becd, previous_slot: 1105319, previous_head: 0xf64f8e5ed617dc18c1e759dab5d008369767c3678416dac2fe1d389562842b49
|
> INFO Beacon chain re-org reorg_distance: 1, new_slot: 1105320, new_head: 0x72791549e4ca792f91053bc7cf1e55c6fbe745f78ce7a16fc3acb6f09161becd, previous_slot: 1105319, previous_head: 0xf64f8e5ed617dc18c1e759dab5d008369767c3678416dac2fe1d389562842b49
|
||||||
|
|
||||||
In case a re-org is not viable (which should be most of the time), Lighthouse will just propose a
|
In case a re-org is not viable (which should be most of the time), Lighthouse will just propose a
|
||||||
block as normal and log the reason the re-org was not attempted at debug level:
|
block as normal and log the reason the re-org was not attempted at debug level:
|
||||||
|
|||||||
Reference in New Issue
Block a user