1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Log when an invalid URL path is accessed

This commit is contained in:
NG (Graham)
2026-03-18 17:42:09 -04:00
parent fa3ed24922
commit 5ce1611cc5
2 changed files with 12 additions and 0 deletions

View File

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