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

@@ -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();