From 1f0fc2f6054c7f434018d69987515cf20e6c47f1 Mon Sep 17 00:00:00 2001 From: Franklin Date: Mon, 29 Aug 2022 13:33:59 -0400 Subject: [PATCH] Add filter bottom to be trace --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/utils/logger_util.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed4a445..50695fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "actix-web-utils" -version = "0.2.0" +version = "0.2.1" dependencies = [ "actix-web", "log", diff --git a/Cargo.toml b/Cargo.toml index 3459c5c..bafd2f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-web-utils" -version = "0.2.0" +version = "0.2.1" edition = "2021" authors = ["Franklin E. Blanco"] description = "Just some useful addons for actix web." diff --git a/src/utils/logger_util.rs b/src/utils/logger_util.rs index 585d45e..0f516d0 100644 --- a/src/utils/logger_util.rs +++ b/src/utils/logger_util.rs @@ -2,11 +2,11 @@ use log::{SetLoggerError, LevelFilter}; use crate::extensions::logger::SimpleLogger; -pub static LOGGER: SimpleLogger = SimpleLogger; +static LOGGER: SimpleLogger = SimpleLogger; pub fn init_logger_default() -> Result<(), SetLoggerError> { log::set_logger(&LOGGER) - .map(|()| log::set_max_level(LevelFilter::Info)) + .map(|()| log::set_max_level(LevelFilter::Trace)) } /// Made this get an integer so that you don't have to import the Log library in your code too, as the LevelFilter enum is inside it. /// 0 -> Off, 1 -> Trace, 2 -> Debug, 3 -> Info, 4 -> Warn, 5 -> Error