Skip to content

Commit

Permalink
GH-31 # Switch back to rocket-sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-C committed Jul 29, 2023
1 parent 553009d commit 4ecd689
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 79 deletions.
217 changes: 201 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ regex = "1.7"
csv = "1.2"
openssl = { version = "0.10", features = ["vendored"] } # Required for sentry
sentry = "0.31"
rocket-sentry = "0.7" # 0.8 require rocket 0.5

[dependencies.rocket_contrib]
version = "0.4"
Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![feature(proc_macro_hygiene, decl_macro)]

mod rocket_sentry;

use ::rocket_sentry::RocketSentry;
use jarm_online::set_up_rocket;
use rocket::fairing::{Fairing, Info, Kind};
use rocket::http::Header;
Expand All @@ -28,6 +27,6 @@ impl Fairing for CORS {
fn main() {
set_up_rocket()
.attach(CORS)
.attach(rocket_sentry::RocketSentry::fairing())
.attach(RocketSentry::fairing())
.launch();
}
Loading

0 comments on commit 4ecd689

Please sign in to comment.