From c52481c04150a6ace754f4eda3c314aef3ea98a3 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Thu, 6 Aug 2020 17:30:55 -0300 Subject: [PATCH] fix logs --- zebrad/src/application.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/zebrad/src/application.rs b/zebrad/src/application.rs index 3f026a97..606acaa3 100644 --- a/zebrad/src/application.rs +++ b/zebrad/src/application.rs @@ -111,18 +111,13 @@ impl Application for ZebradApp { .as_ref() .expect("config is loaded before register_components"); + let default_filter = if command.verbose { "debug" } else { "info" }; let is_server = command .command .as_ref() .map(ZebradCmd::is_server) .unwrap_or(false); - let default_filter = if is_server || command.verbose { - "info" - } else { - "warn" - }; - // Launch network endpoints for long-running commands if is_server { let filter = cfg_ref.tracing.filter.as_deref().unwrap_or(default_filter);