Add sentry

This commit is contained in:
2023-08-10 00:10:49 +02:00
parent 78e5e260f1
commit e0ad5d6cbf
2 changed files with 6 additions and 0 deletions

View File

@@ -20,3 +20,5 @@ sentry = "0.31.5"
async-tempfile = "0.4.0"
uuid = "1.4.1"
sentry = { version = "0.31.3", features = ["debug-images"] }

View File

@@ -183,6 +183,10 @@ async fn main() {
.compact()
.init();
let _guard = sentry::init(
std::env::var("SENTRY_DSN").unwrap_or_else(|_| panic!("Cannot get the {} env variable", env))
);
let addr = SocketAddr::from(([0, 0, 0, 0], 8080));
let app = get_router();