|
|
@@ -1,4 +1,4 @@
|
|
|
-use tracing_subscriber::{EnvFilter, FmtSubscriber};
|
|
|
+use tracing_subscriber::{FmtSubscriber};
|
|
|
|
|
|
pub fn init_log_with_debug() {
|
|
|
final_init(tracing::Level::DEBUG)
|
|
|
@@ -13,15 +13,15 @@ pub fn init_log_with_info() {
|
|
|
}
|
|
|
|
|
|
pub fn final_init(level: tracing::Level) {
|
|
|
- let filter = EnvFilter::from_default_env()
|
|
|
- .add_directive("exchanges=trace".parse().unwrap())
|
|
|
- .add_directive("global=trace".parse().unwrap())
|
|
|
- .add_directive("standard=trace".parse().unwrap())
|
|
|
- .add_directive("tests=trace".parse().unwrap())
|
|
|
- .add_directive("strategy=trace".parse().unwrap());
|
|
|
+ // let filter = EnvFilter::from_default_env()
|
|
|
+ // .add_directive("exchanges=trace".parse().unwrap())
|
|
|
+ // .add_directive("global=trace".parse().unwrap())
|
|
|
+ // .add_directive("standard=trace".parse().unwrap())
|
|
|
+ // .add_directive("tests=trace".parse().unwrap())
|
|
|
+ // .add_directive("strategy=trace".parse().unwrap());
|
|
|
|
|
|
let subscriber = FmtSubscriber::builder()
|
|
|
- .with_env_filter(filter)
|
|
|
+ // .with_env_filter(filter)
|
|
|
.with_max_level(level)
|
|
|
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::FULL)
|
|
|
.finish();
|