0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-22 14:08:23 -05:00

fix debug level not being set properly

This commit is contained in:
Milim 2023-08-19 09:09:09 +02:00
parent 21403d0a48
commit 87e230d731
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ use websurfx::{config::parser::Config, run};
#[actix_web::main] #[actix_web::main]
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
// Initialize the parsed config file. // Initialize the parsed config file.
let config = Config::parse(true).unwrap(); let config = Config::parse(false).unwrap();
log::info!( log::info!(
"started server on port {} and IP {}", "started server on port {} and IP {}",

View File

@ -175,7 +175,7 @@ fn set_logging_level(debug: bool, logging: bool) {
// Initializing logging middleware with level set to default or info. // Initializing logging middleware with level set to default or info.
let log_level = match (debug, logging) { let log_level = match (debug, logging) {
(true, true) => LevelFilter::Error, (true, true) => LevelFilter::Debug,
(true, false) => LevelFilter::Debug, (true, false) => LevelFilter::Debug,
(false, true) => LevelFilter::Info, (false, true) => LevelFilter::Info,
(false, false) => LevelFilter::Error, (false, false) => LevelFilter::Error,