mirror of
https://github.com/OMGeeky/google_youtube.git
synced 2026-01-04 09:50:21 +01:00
add feature flag to enable tracing instead of log
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use log::{debug, error, info, trace, warn};
|
||||
|
||||
use crate::prelude::*;
|
||||
use std::default::Default;
|
||||
use std::error::Error;
|
||||
use std::path::{Path, PathBuf};
|
||||
@@ -24,6 +25,7 @@ use youtube::{hyper, hyper_rustls::HttpsConnectorBuilder};
|
||||
|
||||
mod auth;
|
||||
pub mod scopes;
|
||||
pub mod prelude;
|
||||
// mod config;
|
||||
|
||||
pub struct YoutubeClient {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use log::{debug, error, info, trace, warn};
|
||||
use google_youtube::prelude::*;
|
||||
use std::error::Error;
|
||||
use std::path::Path;
|
||||
|
||||
|
||||
4
src/prelude.rs
Normal file
4
src/prelude.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
#[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