From 5ce1611cc55caf5506ac65c62866bb88f449b7d4 Mon Sep 17 00:00:00 2001 From: "NG (Graham)" Date: Wed, 18 Mar 2026 17:42:09 -0400 Subject: [PATCH] Log when an invalid URL path is accessed --- cdn/src/main.rs | 5 +++++ rc_auth/src/main.rs | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/cdn/src/main.rs b/cdn/src/main.rs index 58a4a1f..9de0254 100644 --- a/cdn/src/main.rs +++ b/cdn/src/main.rs @@ -22,6 +22,11 @@ async fn main() -> std::io::Result<()> { let internal_auth = actix_web::web::Data::new(crate::robocraft::IntercomAuth::new(&cli_args.data_robocraft)?); HttpServer::new(move || { App::new() + .wrap_fn(|req, srv| { + use actix_web::dev::Service; + log::trace!("Request {} {}", req.method(), req.path()); + srv.call(req) + }) .app_data(cli_args2.clone()) .app_data(internal_auth.clone()) .service(index) diff --git a/rc_auth/src/main.rs b/rc_auth/src/main.rs index b5389e7..8d34f8f 100644 --- a/rc_auth/src/main.rs +++ b/rc_auth/src/main.rs @@ -51,6 +51,11 @@ async fn main() -> std::io::Result<()> { HttpServer::new(move || { App::new() + .wrap_fn(|req, srv| { + use actix_web::dev::Service; + log::trace!("Request {} {}", req.method(), req.path()); + srv.call(req) + }) .app_data(cli_args2.clone()) .app_data(rc_preloaded.clone()) .app_data(internal_auth.clone()) @@ -66,6 +71,8 @@ async fn main() -> std::io::Result<()> { .service(robocraft::username::user_password_auth) .service(robocraft::intercom::services_ws) .service(robocraft::intercom::service_msg) + .service(robocraft::intercom::lobby_state_ws) + .service(robocraft::intercom::lobby_state_msg) .service(robocraft::intercom::status_get) .service(robocraft::intercom::status_set) })