mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Add backtrace logging. (#7063)
This commit is contained in:
@@ -998,11 +998,13 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
||||
let split = self.split.read_recursive();
|
||||
|
||||
if state_root != split.state_root {
|
||||
let backtrace = std::backtrace::Backtrace::capture();
|
||||
warn!(
|
||||
self.log,
|
||||
"State cache missed";
|
||||
"state_root" => ?state_root,
|
||||
"block_root" => ?block_root,
|
||||
"backtrace" => %backtrace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1527,10 +1529,12 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
||||
|
||||
if *state_root != self.get_split_info().state_root {
|
||||
// Do not warn on start up when loading the split state.
|
||||
let backtrace = std::backtrace::Backtrace::capture();
|
||||
warn!(
|
||||
self.log,
|
||||
"State cache missed";
|
||||
"state_root" => ?state_root,
|
||||
"backtrace" => %backtrace,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user