This commit is contained in:
2024-05-06 23:09:33 +02:00
parent e782dbe46b
commit f96db74cd1

View File

@@ -15,17 +15,13 @@ mod config;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
tracing_subscriber::fmt()
.with_target(false)
.compact()
.init();
let options = ClientOptions { let options = ClientOptions {
dsn: Some(Dsn::from_str(&config::CONFIG.sentry_dsn).unwrap()), dsn: Some(Dsn::from_str(&config::CONFIG.sentry_dsn).unwrap()),
default_integrations: false, default_integrations: false,
..Default::default() ..Default::default()
} }
.add_integration(DebugImagesIntegration::new()); .add_integration(DebugImagesIntegration::new());
let _guard = sentry::init(options);
let sentry_layer = sentry_tracing::layer().event_filter(|md| match md.level() { let sentry_layer = sentry_tracing::layer().event_filter(|md| match md.level() {
&tracing::Level::ERROR => EventFilter::Event, &tracing::Level::ERROR => EventFilter::Event,