mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user