Adds env logger to output libp2p logs
This commit is contained in:
parent
e36fa3152d
commit
d2f80e3b2a
@ -23,3 +23,4 @@ futures = "0.1.25"
|
|||||||
exit-future = "0.1.3"
|
exit-future = "0.1.3"
|
||||||
state_processing = { path = "../eth2/state_processing" }
|
state_processing = { path = "../eth2/state_processing" }
|
||||||
slog = { version = "^2.2.3" , features = ["max_level_trace", "release_max_level_debug"] }
|
slog = { version = "^2.2.3" , features = ["max_level_trace", "release_max_level_debug"] }
|
||||||
|
env_logger = "0.6.1"
|
||||||
|
@ -2,6 +2,7 @@ mod run;
|
|||||||
|
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use client::{ClientConfig, Eth2Config};
|
use client::{ClientConfig, Eth2Config};
|
||||||
|
use env_logger::{Builder, Env};
|
||||||
use eth2_config::{get_data_dir, read_from_file, write_to_file};
|
use eth2_config::{get_data_dir, read_from_file, write_to_file};
|
||||||
use slog::{crit, o, Drain};
|
use slog::{crit, o, Drain};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
@ -12,6 +13,9 @@ pub const CLIENT_CONFIG_FILENAME: &str = "beacon-node.toml";
|
|||||||
pub const ETH2_CONFIG_FILENAME: &str = "eth2-spec.toml";
|
pub const ETH2_CONFIG_FILENAME: &str = "eth2-spec.toml";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// debugging output for libp2p and external crates
|
||||||
|
Builder::from_env(Env::default()).init();
|
||||||
|
|
||||||
let matches = App::new("Lighthouse")
|
let matches = App::new("Lighthouse")
|
||||||
.version(version::version().as_str())
|
.version(version::version().as_str())
|
||||||
.author("Sigma Prime <contact@sigmaprime.io>")
|
.author("Sigma Prime <contact@sigmaprime.io>")
|
||||||
|
Loading…
Reference in New Issue
Block a user