From 3088dec7b50eb4b79111c6effb8012c7ac222ecf Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Wed, 3 Mar 2021 11:17:08 +0530 Subject: [PATCH] Fixed logging --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d1e7d35..f59afe6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ async fn main() -> std::io::Result<()> { let static_path = config.static_path; HttpServer::new(move || { App::new() - .wrap(Logger::new("%t [%a] %s %{User-Agent}i %r")) + .wrap(Logger::new("%t [%{x-forwarded-for}i] %s %{User-Agent}i %r")) .service(web::resource("/ws/").route(web::get().to(ws_index))) .service(fs::Files::new("/", &static_path).index_file("index.html")) })