From 6df6d42b154a8b2d5f41af523d8da25873e9d5c2 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 1 Mar 2026 13:34:34 -0600 Subject: [PATCH] Remove `tracing-log` dependency and related initialization from logging setup - Eliminated the `tracing-log` crate from `Cargo.toml` and `Cargo.lock`, streamlining the logging configuration. - Updated the logging initialization function to remove the `tracing_log::LogTracer::init()` call, simplifying the logging setup process. These changes aim to enhance the logging system by reducing unnecessary dependencies and improving code clarity. --- Cargo.lock | 1 - Cargo.toml | 1 - src/logging.rs | 2 -- 3 files changed, 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4d8e4a64..12b5585c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -255,7 +255,6 @@ dependencies = [ "toml", "tracing", "tracing-appender", - "tracing-log", "tracing-subscriber", "uuid", "walkdir", diff --git a/Cargo.toml b/Cargo.toml index 13d14a18..b7b54acc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -101,7 +101,6 @@ thiserror = "2" tokio = { version = "1.49.0", features = ["rt", "rt-multi-thread", "macros", "sync"] } tracing = "0.1" tracing-appender = "0.2" -tracing-log = "0.2" tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "time"] } uuid = { version = "1.21.0", features = ["v4", "serde"] } clap = { version = "4", features = ["derive"] } diff --git a/src/logging.rs b/src/logging.rs index a1fffdd3..3fa93804 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -23,8 +23,6 @@ pub fn init_logging( file_log_level: Option, command_name: &str, ) -> LogGuard { - tracing_log::LogTracer::init().expect("Failed to set log tracer"); - let console_filter = match verbosity { 0 => "info", 1 => "info,librojo=debug",