feat(discv5): disable noisy logs (#7458)

This commit is contained in:
Emilia Hane
2024-04-04 16:44:36 +02:00
committed by GitHub
parent 405d386e47
commit 2ebbd38127

View File

@ -18,9 +18,9 @@ pub(crate) type BoxedLayer<S> = Box<dyn Layer<S> + Send + Sync>;
const RETH_LOG_FILE_NAME: &str = "reth.log"; const RETH_LOG_FILE_NAME: &str = "reth.log";
/// Default [directives](Directive) for [EnvFilter] which disables high-frequency debug logs from /// Default [directives](Directive) for [EnvFilter] which disables high-frequency debug logs from
/// `hyper` and `trust-dns` /// `hyper`, `trust-dns` and `discv5`.
const DEFAULT_ENV_FILTER_DIRECTIVES: [&str; 3] = const DEFAULT_ENV_FILTER_DIRECTIVES: [&str; 4] =
["hyper::proto::h1=off", "trust_dns_proto=off", "trust_dns_resolver=off"]; ["hyper::proto::h1=off", "trust_dns_proto=off", "trust_dns_resolver=off", "discv5=off"];
/// Manages the collection of layers for a tracing subscriber. /// Manages the collection of layers for a tracing subscriber.
/// ///