mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 15:45:36 +01:00
Fix
This commit is contained in:
@@ -16,7 +16,7 @@ futures = "0.3.28"
|
||||
reqwest = { version = "0.11.18", features = ["stream"] }
|
||||
tokio-util = { version = "0.7.8", features = ["compat"] }
|
||||
async-compression = { version = "0.4.0", features = ["futures-io", "gzip"] }
|
||||
sentry = "0.31.3"
|
||||
sentry = { version = "0.31.3", features = ["debug-images"] }
|
||||
lazy_static = "1.4.0"
|
||||
log = "0.4.18"
|
||||
env_logger = "0.10.0"
|
||||
|
||||
13
src/main.rs
13
src/main.rs
@@ -6,8 +6,9 @@ pub mod types;
|
||||
pub mod utils;
|
||||
pub mod updater;
|
||||
|
||||
use std::net::SocketAddr;
|
||||
use std::{net::SocketAddr, str::FromStr};
|
||||
use axum::{Router, routing::post, http::HeaderMap};
|
||||
use sentry::{ClientOptions, types::Dsn, integrations::debug_images::DebugImagesIntegration};
|
||||
|
||||
use crate::updater::cron_jobs;
|
||||
|
||||
@@ -49,9 +50,17 @@ async fn start_app() {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let _guard = sentry::init(config::CONFIG.sentry_dsn.clone());
|
||||
env_logger::init();
|
||||
|
||||
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);
|
||||
|
||||
tokio::join![
|
||||
cron_jobs(),
|
||||
start_app()
|
||||
|
||||
Reference in New Issue
Block a user