From 5cb566b16577246d351a3200d40dfcc9905c70cf Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 22 Dec 2022 14:46:55 +0100 Subject: [PATCH] No longer filter out milli logs when --log-level is "info" --- meilisearch/src/main.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/meilisearch/src/main.rs b/meilisearch/src/main.rs index 8438e1c41..bc02b42f8 100644 --- a/meilisearch/src/main.rs +++ b/meilisearch/src/main.rs @@ -7,7 +7,6 @@ use actix_web::web::Data; use actix_web::HttpServer; use index_scheduler::IndexScheduler; use meilisearch::analytics::Analytics; -use meilisearch::option::LogLevel; use meilisearch::{analytics, create_app, setup_meilisearch, Opt}; use meilisearch_auth::{generate_master_key, AuthController, MASTER_KEY_MIN_SIZE}; @@ -18,10 +17,6 @@ static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; fn setup(opt: &Opt) -> anyhow::Result<()> { let mut log_builder = env_logger::Builder::new(); log_builder.parse_filters(&opt.log_level.to_string()); - if matches!(opt.log_level, LogLevel::Info) { - // if we are in info we only allow the warn log_level for milli - log_builder.filter_module("milli", log::LevelFilter::Warn); - } log_builder.init();