mirror of
https://github.com/OMGeeky/exponential_backoff.git
synced 2026-01-03 10:05:27 +01:00
change to only use the tracing instead, not disabling the log crate completely
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user