Skip to content

Commit

Permalink
made sure that requests are also logged
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Jul 2, 2024
1 parent f18b64e commit b99e7aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/main-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ path = "src/main.rs"
actix-web-prom = { version = "0.8.0", default-features = false, features = [] }
tracing-subscriber = { version = "0.3.18",features = ["env-filter", "json", "fmt"]}
tracing = "0.1.40"
tracing-actix-web = "0.7.11"
sentry = { version = "0.34.0", features = ["tracing","metrics","backtrace","contexts","debug-images","panic","reqwest","rustls"] }
sentry-actix = "0.34.0"

Expand Down
3 changes: 2 additions & 1 deletion server/main-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use sqlx::postgres::PgPoolOptions;
use sqlx::prelude::*;
use sqlx::PgPool;
use tracing::{debug, error, info};
use tracing_actix_web::TracingLogger;

mod calendar;
mod details;
Expand Down Expand Up @@ -153,7 +154,7 @@ async fn run() -> Result<(), BoxedError> {
App::new()
.wrap(prometheus.clone())
.wrap(cors)
.wrap(middleware::Logger::default().exclude("/api/status"))
.wrap(TracingLogger::default())
.wrap(middleware::Compress::default())
.wrap(sentry_actix::Sentry::new())
.app_data(web::JsonConfig::default().limit(MAX_JSON_PAYLOAD))
Expand Down

0 comments on commit b99e7aa

Please sign in to comment.