Make the .env file optional
All checks were successful
Rust CI / Build and Test (push) Successful in 6m10s
All checks were successful
Rust CI / Build and Test (push) Successful in 6m10s
This commit is contained in:
parent
3d229a4906
commit
2acc699020
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user