From e03de7383e69d2a3611d13a400560d734ca1aa39 Mon Sep 17 00:00:00 2001 From: kenkoooo Date: Thu, 12 Dec 2019 20:27:44 +0900 Subject: [PATCH] Enable middleware::RequestLogger again --- src/lib.rs | 2 +- src/middleware/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a4be975cf..460d71c85 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,7 +75,7 @@ mod endpoint; mod error; -mod middleware; +pub mod middleware; mod redirect; mod request; mod response; diff --git a/src/middleware/mod.rs b/src/middleware/mod.rs index cc9fa7cfd..41562c983 100644 --- a/src/middleware/mod.rs +++ b/src/middleware/mod.rs @@ -13,13 +13,13 @@ use crate::{Request, Response}; // mod cookies; // mod cors; // mod default_headers; -// mod logger; +mod logger; // pub use compression::{Compression, Decompression}; // pub use cookies::CookiesMiddleware; // pub use cors::{Cors, Origin}; // pub use default_headers::DefaultHeaders; -// pub use logger::RequestLogger; +pub use logger::RequestLogger; /// Middleware that wraps around remaining middleware chain. pub trait Middleware: 'static + Send + Sync {