mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Integrate tracing (#6339)
Tracing Integration
- [reference](5bbf1859e9/projects/project-ideas.md (L297))
- [x] replace slog & log with tracing throughout the codebase
- [x] implement custom crit log
- [x] make relevant changes in the formatter
- [x] replace sloggers
- [x] re-write SSE logging components
cc: @macladson @eserilev
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
use crate::database::interface::BeaconNodeBackend;
|
||||
use crate::hot_cold_store::HotColdDB;
|
||||
use crate::{DBColumn, Error};
|
||||
use slog::debug;
|
||||
use tracing::debug;
|
||||
use types::EthSpec;
|
||||
|
||||
impl<E> HotColdDB<E, BeaconNodeBackend<E>, BeaconNodeBackend<E>>
|
||||
@@ -24,11 +24,7 @@ where
|
||||
}
|
||||
});
|
||||
if !ops.is_empty() {
|
||||
debug!(
|
||||
self.log,
|
||||
"Garbage collecting {} temporary states",
|
||||
ops.len()
|
||||
);
|
||||
debug!("Garbage collecting {} temporary states", ops.len());
|
||||
|
||||
self.delete_batch(DBColumn::BeaconState, ops.clone())?;
|
||||
self.delete_batch(DBColumn::BeaconStateSummary, ops.clone())?;
|
||||
|
||||
Reference in New Issue
Block a user