mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
add tracing metrics layer for dependency logging (#4979)
* add metrics layer * add metrics * simplify getting the target * make clippy happy * fix typos * unify deps under workspace * make import statement shorter, fix typos * enable warn by default, mark flag as deprecated * do not exit on error when initializing logging fails * revert exit on error * adjust bootnode logging * use target as is by default * make libp2p events register correctly * adjust repilcated cli help * turn on debug logs by default, remove deprecation warning * suppress output (#5) --------- Co-authored-by: Age Manning <Age@AgeManning.com>
This commit is contained in:
@@ -48,11 +48,8 @@ pub fn run(
|
||||
log::Level::Error => drain.filter_level(Level::Error),
|
||||
};
|
||||
|
||||
let logger = Logger::root(drain.fuse(), o!());
|
||||
let _scope_guard = slog_scope::set_global_logger(logger);
|
||||
slog_stdlog::init_with_level(debug_level).unwrap();
|
||||
let log = Logger::root(drain.fuse(), o!());
|
||||
|
||||
let log = slog_scope::logger();
|
||||
// Run the main function emitting any errors
|
||||
if let Err(e) = match eth_spec_id {
|
||||
EthSpecId::Minimal => {
|
||||
|
||||
Reference in New Issue
Block a user