mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 10:52:43 +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:
@@ -210,7 +210,7 @@ impl DatabasePubkey {
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::test_utils::{BeaconChainHarness, EphemeralHarnessType};
|
||||
use logging::test_logger;
|
||||
use logging::create_test_tracing_subscriber;
|
||||
use std::sync::Arc;
|
||||
use store::HotColdDB;
|
||||
use types::{EthSpec, Keypair, MainnetEthSpec};
|
||||
@@ -231,10 +231,8 @@ mod test {
|
||||
}
|
||||
|
||||
fn get_store() -> BeaconStore<T> {
|
||||
Arc::new(
|
||||
HotColdDB::open_ephemeral(<_>::default(), Arc::new(E::default_spec()), test_logger())
|
||||
.unwrap(),
|
||||
)
|
||||
create_test_tracing_subscriber();
|
||||
Arc::new(HotColdDB::open_ephemeral(<_>::default(), Arc::new(E::default_spec())).unwrap())
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_range_loop)]
|
||||
|
||||
Reference in New Issue
Block a user