summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 1d96b46..2d38875 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -51,6 +51,7 @@ use serde_json::from_str as serde_json_from_str;
use anyhow::Result;
use anyhow::Error;
use actix_web::{web, HttpResponse, Responder};
+use env_logger::Env;
use crate::app::App;
use crate::cli::*;
@@ -74,7 +75,7 @@ fn start_server(cli: &CLI) -> bool {
#[actix_rt::main]
async fn main() -> Result<()> {
let cli = cli()?;
- let _ = env_logger::init();
+ let _ = env_logger::from_env(Env::default().default_filter_or("info")).init();
debug!("Logger initialized");
let config_file_name = PathBuf::from("distrox.toml");