From 8dce05504e081a310a4db47d11f8695ddbbdfebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 20 Apr 2020 09:13:45 +0200 Subject: [PATCH] remove spammy lib list --- src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2e294ec..e7ed7e6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,10 +13,6 @@ use std::str::FromStr; pub const LOG_LEVELS: [&str; 5] = ["error", "warn", "info", "debug", "trace"]; -/// 3rd-party libraries that produce log spam - we set these to a fixed higher level -/// to allow using e.g. TRACE without drowning our custom messages -pub const SPAMMY_LIBS: [&str; 6] = ["tokio_reactor", "hyper", "reqwest", "mio", "want", "rumqtt"]; - /// Implement this for the main config struct pub trait AppConfig: Sized + Serialize + DeserializeOwned + Debug + Default { type Init; @@ -26,7 +22,7 @@ pub trait AppConfig: Sized + Serialize + DeserializeOwned + Debug + Default { /// Get names of library modules to suppress from log output (limit to warn or error) fn logging_suppress_mods(&self) -> Option> { - Some(Vec::from(&SPAMMY_LIBS[..])) + None } /// Get log module levels to use (take priority over the main log level)