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,