dont ignore all tracing logs for sentry
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
350d25a368
commit
6fa2e0814c
1 changed files with 1 additions and 6 deletions
|
@ -35,8 +35,6 @@ use ruma::api::{
|
||||||
},
|
},
|
||||||
IncomingRequest,
|
IncomingRequest,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "sentry_telemetry")]
|
|
||||||
use sentry_tracing::EventFilter;
|
|
||||||
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
|
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
|
||||||
use tikv_jemallocator::Jemalloc;
|
use tikv_jemallocator::Jemalloc;
|
||||||
use tokio::{
|
use tokio::{
|
||||||
|
@ -151,10 +149,7 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "sentry_telemetry")]
|
#[cfg(feature = "sentry_telemetry")]
|
||||||
let sentry_layer = sentry_tracing::layer().event_filter(|md| match md.level() {
|
let sentry_layer = sentry_tracing::layer();
|
||||||
&Level::ERROR => EventFilter::Event,
|
|
||||||
_ => EventFilter::Ignore,
|
|
||||||
});
|
|
||||||
|
|
||||||
let subscriber;
|
let subscriber;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue