From 10b8a0ab00b16f29533f3c20673cd808b7242bfb Mon Sep 17 00:00:00 2001 From: qdequele Date: Mon, 27 Jan 2020 18:26:08 +0100 Subject: [PATCH] add request middleware --- meilisearch-http/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-http/src/main.rs b/meilisearch-http/src/main.rs index 1fa5079ee..5083ca4ec 100644 --- a/meilisearch-http/src/main.rs +++ b/meilisearch-http/src/main.rs @@ -6,7 +6,7 @@ use log::info; use main_error::MainError; use structopt::StructOpt; // use tide::middleware::{CorsMiddleware, CorsOrigin}; -// use tide_log::RequestLogger; +use tide::middleware::RequestLogger; use meilisearch_http::data::Data; use meilisearch_http::option::Opt; @@ -41,7 +41,7 @@ pub fn main() -> Result<(), MainError> { // .allow_origin(CorsOrigin::from("*")) // .allow_methods(HeaderValue::from_static("GET, POST, OPTIONS")), // ); - // app.middleware(RequestLogger::new()); + app.middleware(RequestLogger::new()); // app.middleware(tide_compression::Compression::new()); // app.middleware(tide_compression::Decompression::new());