mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 06:55:37 +01:00
Add sentry
This commit is contained in:
@@ -5,7 +5,7 @@ pub mod services;
|
||||
use std::net::SocketAddr;
|
||||
use tracing::info;
|
||||
|
||||
use crate::views::get_router;
|
||||
use crate::{views::get_router, config::CONFIG};
|
||||
|
||||
|
||||
#[tokio::main]
|
||||
@@ -15,6 +15,8 @@ async fn main() {
|
||||
.compact()
|
||||
.init();
|
||||
|
||||
let _guard = sentry::init(CONFIG.sentry_dsn.clone());
|
||||
|
||||
let addr = SocketAddr::from(([0, 0, 0, 0], 8080));
|
||||
|
||||
let app = get_router().await;
|
||||
|
||||
Reference in New Issue
Block a user