Prevent rolling file appender panic (#5117)

* rolling file appender panic removal and max log file count

* max log file
This commit is contained in:
Eitan Seri-Levi
2024-01-24 01:12:48 +02:00
committed by GitHub
parent a36a12a8d2
commit 612eaf2d41
3 changed files with 23 additions and 72 deletions

View File

@@ -542,13 +542,6 @@ fn run<E: EthSpec>(
let turn_on_terminal_logs = matches.is_present("env_log");
// Run a task to clean up old tracing logs.
let log_cleaner_context = environment.service_context("log_cleaner".to_string());
log_cleaner_context.executor.spawn(
logging::cleanup_logging_task(path.clone(), log.clone()),
"log_cleaner",
);
logging::create_tracing_layer(path, turn_on_terminal_logs);
// Allow Prometheus to export the time at which the process was started.