Skip to content

Commit

Permalink
add unwind catcher for web server
Browse files Browse the repository at this point in the history
  • Loading branch information
4t145 committed Jan 3, 2025
1 parent 66d4c63 commit f666d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tardis/src/web/web_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ impl TardisWebServer {
Cors::new().allow_origin(&self.config.allowed_origin)
};
let route = route.boxed();
let route = route.with(middleware).with(poem::middleware::Tracing);
let route = route.with(middleware).with(poem::middleware::Tracing).with(poem::middleware::CatchPanic::default());
#[cfg(feature = "tracing")]
let route = {
let tracer = opentelemetry::global::tracer(crate::basic::tracing::tracing_service_name());
Expand Down

0 comments on commit f666d50

Please sign in to comment.