Make the .env file optional
All checks were successful
Rust CI / Build and Test (push) Successful in 6m10s

This commit is contained in:
Joshua Coles 2024-08-02 09:38:43 +01:00
parent 3d229a4906
commit 2acc699020

View File

@ -79,7 +79,9 @@ enum Commands {
#[tokio::main]
async fn main() {
dotenvy::dotenv().expect("Failed to load .env file");
if dotenvy::dotenv().is_ok() {
println!("Loaded .env file");
}
// Init tracing
tracing_subscriber::fmt::init();