remove tracing feature and just use tracing

it provides log with the needed stuff anyway
This commit is contained in:
OMGeeky
2023-07-14 16:12:10 +02:00
parent 9176ac9095
commit f410491e04
4 changed files with 3 additions and 12 deletions

View File

@@ -17,9 +17,5 @@ async-trait = "0.1.68"
log = { version = "0.4" }
tracing = { version = "0.1", optional = true }
[features]
default = []
tracing = ["dep:tracing"]
log = "0.4"
tracing = "0.1"

View File

@@ -5,6 +5,5 @@ pub mod utils;
pub mod re_exports {
pub use async_trait;
pub use log;
pub use serde_json;
}

View File

@@ -5,9 +5,4 @@ pub use crate::data::{BigQueryTable, BigQueryTableBase, OrderDirection};
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
#[cfg(not(feature = "tracing"))]
pub use log::{debug, error, info, trace, warn};
#[cfg(feature = "tracing")]
pub use tracing::{debug, error, info, trace, warn};
pub use log::LevelFilter;

View File

@@ -1,3 +1,4 @@
use log::LevelFilter;
use nameof::name_of;
use google_bigquery_v2::data::query_builder::QueryResultType;