mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 05:58:21 -05:00
fix debug level not being set properly
This commit is contained in:
parent
21403d0a48
commit
87e230d731
@ -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 {}",
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user