change to only use the tracing instead, not disabling the log crate completely

This commit is contained in:
OMGeeky
2023-06-01 21:47:44 +02:00
parent 5d783113b0
commit 74a49ab6e1
2 changed files with 4 additions and 5 deletions

View File

@@ -12,10 +12,9 @@ chrono = "0.4.23"
google-youtube3 = "5.0.2"
serde_json = "1.0.91"
rand = "0.8.5"
log = { version = "0.4" , optional=true}
tracing = { version = "0.1.37" , optional=true}
log = { version = "0.4" }
tracing = { version = "0.1" , optional=true}
[features]
default = ["tracing"]
log = ["dep:log"]
default = []
tracing = ["dep:tracing"]

View File

@@ -1,4 +1,4 @@
#[cfg(feature = "log")]
#[cfg(not(feature = "tracing"))]
pub use log::{debug, error, info, trace, warn};
#[cfg(feature = "tracing")]
pub use tracing::{debug, error, info, trace, warn};