1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-07-01 20:25:09 +02:00

Update to latest version of actix-web.

This commit is contained in:
Luca Palmieri
2020-09-27 16:46:31 +01:00
parent 993b6e2f68
commit 209ed46498
3 changed files with 11 additions and 8 deletions

View File

@ -12,7 +12,7 @@
//!
//! [`TracingLogger`]: #struct.TracingLogger.html
//! [`actix-web`]: https://docs.rs/actix-web
//! [`Logger`]: https://docs.rs/actix-web/2.0.0/actix_web/middleware/struct.Logger.html
//! [`Logger`]: https://docs.rs/actix-web/3.0.2/actix_web/middleware/struct.Logger.html
//! [`log`]: https://docs.rs/log
//! [`tracing`]: https://docs.rs/tracing
use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform};
@ -83,7 +83,7 @@ use uuid::Uuid;
/// ```
///
/// [`actix-web`]: https://docs.rs/actix-web
/// [`Logger`]: https://docs.rs/actix-web/2.0.0/actix_web/middleware/struct.Logger.html
/// [`Logger`]: https://docs.rs/actix-web/3.0.2/actix_web/middleware/struct.Logger.html
/// [`log`]: https://docs.rs/log
/// [`tracing`]: https://docs.rs/tracing
pub struct TracingLogger;
@ -136,7 +136,7 @@ where
"Request",
request_path = %req.path(),
user_agent = %user_agent,
client_ip_address = %req.connection_info().remote().unwrap_or(""),
client_ip_address = %req.connection_info().realip_remote_addr().unwrap_or(""),
request_id = %Uuid::new_v4(),
status_code = tracing::field::Empty,
);