mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 15:05:37 +01:00
Fix
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -2,10 +2,11 @@ pub mod config;
|
||||
pub mod views;
|
||||
pub mod services;
|
||||
|
||||
use std::net::SocketAddr;
|
||||
use std::{net::SocketAddr, str::FromStr};
|
||||
use sentry::{ClientOptions, types::Dsn, integrations::debug_images::DebugImagesIntegration};
|
||||
use tracing::info;
|
||||
|
||||
use crate::{views::get_router, config::CONFIG};
|
||||
use crate::views::get_router;
|
||||
|
||||
|
||||
#[tokio::main]
|
||||
@@ -15,7 +16,14 @@ async fn main() {
|
||||
.compact()
|
||||
.init();
|
||||
|
||||
let _guard = sentry::init(CONFIG.sentry_dsn.clone());
|
||||
let options = ClientOptions {
|
||||
dsn: Some(Dsn::from_str(&config::CONFIG.sentry_dsn).unwrap()),
|
||||
default_integrations: false,
|
||||
..Default::default()
|
||||
}
|
||||
.add_integration(DebugImagesIntegration::new());
|
||||
|
||||
let _guard = sentry::init(options);
|
||||
|
||||
let addr = SocketAddr::from(([0, 0, 0, 0], 8080));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user