From 87e230d731f09d55ada5efba28a2c28b090afc2c Mon Sep 17 00:00:00 2001 From: Milim <81323548+MilimTheTrueOne@users.noreply.github.com> Date: Sat, 19 Aug 2023 09:09:09 +0200 Subject: [PATCH] fix debug level not being set properly --- src/bin/websurfx.rs | 2 +- src/config/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/websurfx.rs b/src/bin/websurfx.rs index 6807749..75d0b8d 100644 --- a/src/bin/websurfx.rs +++ b/src/bin/websurfx.rs @@ -15,7 +15,7 @@ use websurfx::{config::parser::Config, run}; #[actix_web::main] async fn main() -> std::io::Result<()> { // Initialize the parsed config file. - let config = Config::parse(true).unwrap(); + let config = Config::parse(false).unwrap(); log::info!( "started server on port {} and IP {}", diff --git a/src/config/parser.rs b/src/config/parser.rs index 7048dff..e05f56d 100644 --- a/src/config/parser.rs +++ b/src/config/parser.rs @@ -175,7 +175,7 @@ fn set_logging_level(debug: bool, logging: bool) { // Initializing logging middleware with level set to default or info. let log_level = match (debug, logging) { - (true, true) => LevelFilter::Error, + (true, true) => LevelFilter::Debug, (true, false) => LevelFilter::Debug, (false, true) => LevelFilter::Info, (false, false) => LevelFilter::Error,