mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix
This commit is contained in:
@@ -24,7 +24,7 @@ tokio-util = { version = "0.7.8", features = ["compat"] }
|
||||
axum = { version = "0.6.18", features = ["json"] }
|
||||
axum-prometheus = "0.4.0"
|
||||
chrono = "0.4.26"
|
||||
sentry = "0.31.5"
|
||||
sentry = { version = "0.31.5", features = ["debug-images"] }
|
||||
|
||||
tracing = "0.1.37"
|
||||
tracing-subscriber = { version = "0.3.17", features = ["env-filter"]}
|
||||
|
||||
12
src/main.rs
12
src/main.rs
@@ -4,7 +4,8 @@ pub mod prisma;
|
||||
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;
|
||||
@@ -12,6 +13,15 @@ use crate::views::get_router;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
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);
|
||||
|
||||
tracing_subscriber::fmt()
|
||||
.with_target(false)
|
||||
.compact()
|
||||
|
||||
Reference in New Issue
Block a user