mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Remove "with_line_numbers"
This commit is contained in:
parent
08af0e690c
commit
1b74010e9e
@ -34,7 +34,6 @@ fn setup(opt: &Opt) -> anyhow::Result<LogRouteHandle> {
|
|||||||
|
|
||||||
let subscriber = tracing_subscriber::registry().with(route_layer).with(
|
let subscriber = tracing_subscriber::registry().with(route_layer).with(
|
||||||
tracing_subscriber::fmt::layer()
|
tracing_subscriber::fmt::layer()
|
||||||
.with_line_number(true)
|
|
||||||
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::NEW)
|
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::NEW)
|
||||||
.with_filter(
|
.with_filter(
|
||||||
tracing_subscriber::filter::LevelFilter::from_str(&opt.log_level.to_string())
|
tracing_subscriber::filter::LevelFilter::from_str(&opt.log_level.to_string())
|
||||||
|
@ -164,7 +164,6 @@ fn make_layer<
|
|||||||
let (sender, receiver) = tokio::sync::mpsc::unbounded_channel();
|
let (sender, receiver) = tokio::sync::mpsc::unbounded_channel();
|
||||||
|
|
||||||
let fmt_layer = tracing_subscriber::fmt::layer()
|
let fmt_layer = tracing_subscriber::fmt::layer()
|
||||||
.with_line_number(true)
|
|
||||||
.with_writer(move || LogWriter { sender: sender.clone() })
|
.with_writer(move || LogWriter { sender: sender.clone() })
|
||||||
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::ACTIVE);
|
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::ACTIVE);
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ async fn basic_test_log_stream_route() {
|
|||||||
|
|
||||||
let subscriber = tracing_subscriber::registry().with(route_layer).with(
|
let subscriber = tracing_subscriber::registry().with(route_layer).with(
|
||||||
tracing_subscriber::fmt::layer()
|
tracing_subscriber::fmt::layer()
|
||||||
.with_line_number(true)
|
|
||||||
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::ACTIVE)
|
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::ACTIVE)
|
||||||
.with_filter(tracing_subscriber::filter::LevelFilter::from_str("INFO").unwrap()),
|
.with_filter(tracing_subscriber::filter::LevelFilter::from_str("INFO").unwrap()),
|
||||||
);
|
);
|
||||||
|
@ -80,18 +80,7 @@ fn main() {
|
|||||||
// any number of other subscriber layers may be added before or
|
// any number of other subscriber layers may be added before or
|
||||||
// after the `ErrorLayer`...
|
// after the `ErrorLayer`...
|
||||||
.with(ErrorLayer::default())
|
.with(ErrorLayer::default())
|
||||||
.with(profiling_layer)
|
.with(profiling_layer);
|
||||||
/*.with(
|
|
||||||
tracing_subscriber::fmt::layer()
|
|
||||||
.with_line_number(true)
|
|
||||||
.with_span_events(FmtSpan::FULL), /*.with_filter(
|
|
||||||
tracing_subscriber::filter::LevelFilter::from_level(tracing::Level::TRACE).and(
|
|
||||||
tracing_subscriber::filter::Targets::new()
|
|
||||||
.with_target("profile", tracing::Level::TRACE)
|
|
||||||
.not(),
|
|
||||||
),
|
|
||||||
)*/
|
|
||||||
)*/;
|
|
||||||
|
|
||||||
// set the subscriber as the default for the application
|
// set the subscriber as the default for the application
|
||||||
tracing::subscriber::set_global_default(subscriber).unwrap();
|
tracing::subscriber::set_global_default(subscriber).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user