From f4982df4cdd193ade74143eacb65c5d65dbf774b Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Sat, 15 Jul 2023 17:46:56 +0200 Subject: [PATCH] remove tracing feature (now just use tracing) --- Cargo.toml | 8 +------- src/main.rs | 2 +- src/prelude.rs | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 05f168d..3e16f1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,10 +29,4 @@ futures = "0.3" async-recursion = "1.0.0" log = "0.4" simplelog = "0.12.1" - - - -tracing = { version = "0.1", optional = true } - -[features] -tracing = ["dep:tracing","downloader_config/tracing", "exponential_backoff/tracing"] +tracing = "0.1" diff --git a/src/main.rs b/src/main.rs index 0d92e3c..b4fdcf5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,10 +2,10 @@ use std::error::Error; use std::path::Path; use std::path::PathBuf; +use tracing::info; use twitch_data::combine_parts_into_single_ts; use twitch_data::convert_ts_to_mp4; use twitch_data::get_client; -use twitch_data::prelude::*; use twitch_data::sort_video_part_filenames; #[tokio::main] diff --git a/src/prelude.rs b/src/prelude.rs index aa693b5..d907bd9 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -1,4 +1 @@ -#[cfg(not(feature = "tracing"))] -pub use log::{debug, error, info, trace, warn}; -#[cfg(feature = "tracing")] -pub use tracing::{debug, error, info, trace, warn}; +pub(crate) use tracing::{debug, error, info, trace, warn};