Remove unnecessary filter_layer in logger builder (#7149)

https://github.com/sigp/lighthouse/issues/7146


  Removes `filter_layer` from the builder as this was acting as a "global minimum". We don't actually need this, since we are using more granular control in `stdout_logging_layer` and `file_logging_layer`. Removing this restores control of the logfiles level back to the `--logfile-debug-level` flag (and defaults to debug).
This commit is contained in:
Mac L
2025-03-17 09:55:41 +04:00
committed by GitHub
parent 5cda1641ea
commit d96123b028
4 changed files with 1 additions and 13 deletions

View File

@@ -90,7 +90,6 @@ pub fn run_basic_sim(matches: &ArgMatches) -> Result<(), String> {
let (
env_builder,
filter_layer,
_libp2p_discv5_layer,
file_logging_layer,
stdout_logging_layer,
@@ -119,7 +118,6 @@ pub fn run_basic_sim(matches: &ArgMatches) -> Result<(), String> {
);
if let Err(e) = tracing_subscriber::registry()
.with(filter_layer)
.with(file_logging_layer.with_filter(logger_config.logfile_debug_level))
.with(stdout_logging_layer.with_filter(logger_config.debug_level))
.with(MetricsLayer)

View File

@@ -94,7 +94,6 @@ pub fn run_fallback_sim(matches: &ArgMatches) -> Result<(), String> {
let (
env_builder,
filter_layer,
libp2p_discv5_layer,
file_logging_layer,
stdout_logging_layer,
@@ -124,7 +123,6 @@ pub fn run_fallback_sim(matches: &ArgMatches) -> Result<(), String> {
if let Err(e) = tracing_subscriber::registry()
.with(dependency_log_filter)
.with(filter_layer)
.with(file_logging_layer.with_filter(logger_config.logfile_debug_level))
.with(stdout_logging_layer.with_filter(logger_config.debug_level))
.with(libp2p_discv5_layer)