mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +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();
|
let split = self.split.read_recursive();
|
||||||
|
|
||||||
if state_root != split.state_root {
|
if state_root != split.state_root {
|
||||||
|
let backtrace = std::backtrace::Backtrace::capture();
|
||||||
warn!(
|
warn!(
|
||||||
self.log,
|
self.log,
|
||||||
"State cache missed";
|
"State cache missed";
|
||||||
"state_root" => ?state_root,
|
"state_root" => ?state_root,
|
||||||
"block_root" => ?block_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 {
|
if *state_root != self.get_split_info().state_root {
|
||||||
// Do not warn on start up when loading the split state.
|
// Do not warn on start up when loading the split state.
|
||||||
|
let backtrace = std::backtrace::Backtrace::capture();
|
||||||
warn!(
|
warn!(
|
||||||
self.log,
|
self.log,
|
||||||
"State cache missed";
|
"State cache missed";
|
||||||
"state_root" => ?state_root,
|
"state_root" => ?state_root,
|
||||||
|
"backtrace" => %backtrace,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user