Spaces:
Runtime error
Runtime error
Milim
commited on
Commit
•
87e230d
1
Parent(s):
21403d0
fix debug level not being set properly
Browse files- src/bin/websurfx.rs +1 -1
- src/config/parser.rs +1 -1
src/bin/websurfx.rs
CHANGED
@@ -15,7 +15,7 @@ use websurfx::{config::parser::Config, run};
|
|
15 |
#[actix_web::main]
|
16 |
async fn main() -> std::io::Result<()> {
|
17 |
// Initialize the parsed config file.
|
18 |
-
let config = Config::parse(
|
19 |
|
20 |
log::info!(
|
21 |
"started server on port {} and IP {}",
|
|
|
15 |
#[actix_web::main]
|
16 |
async fn main() -> std::io::Result<()> {
|
17 |
// Initialize the parsed config file.
|
18 |
+
let config = Config::parse(false).unwrap();
|
19 |
|
20 |
log::info!(
|
21 |
"started server on port {} and IP {}",
|
src/config/parser.rs
CHANGED
@@ -175,7 +175,7 @@ fn set_logging_level(debug: bool, logging: bool) {
|
|
175 |
|
176 |
// Initializing logging middleware with level set to default or info.
|
177 |
let log_level = match (debug, logging) {
|
178 |
-
(true, true) => LevelFilter::
|
179 |
(true, false) => LevelFilter::Debug,
|
180 |
(false, true) => LevelFilter::Info,
|
181 |
(false, false) => LevelFilter::Error,
|
|
|
175 |
|
176 |
// Initializing logging middleware with level set to default or info.
|
177 |
let log_level = match (debug, logging) {
|
178 |
+
(true, true) => LevelFilter::Debug,
|
179 |
(true, false) => LevelFilter::Debug,
|
180 |
(false, true) => LevelFilter::Info,
|
181 |
(false, false) => LevelFilter::Error,
|