diff --git a/src/main.rs b/src/main.rs index 15513ab..94952e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use actix_web::{App, HttpServer, web::Data}; use dotenvy::dotenv; -use tracing::Level; +use tracing::{Level, debug}; use tracing_subscriber::FmtSubscriber; mod access; @@ -15,7 +15,10 @@ async fn main() -> std::io::Result<()> { tracing::subscriber::set_global_default(subscriber).expect("Could not initialize logging."); - dotenv().expect("Could not load .env file."); + let dr = dotenv(); + if let Err(e) = dr { + debug!("Could not load .env file: {}", e); + } let config = config::load_config();