Remove env vars from code

This commit is contained in:
Adrian Wozniak 2020-04-01 19:08:25 +02:00
parent 28d35026ef
commit 41fe733be5
2 changed files with 0 additions and 2 deletions

View File

@ -29,7 +29,6 @@ impl DbExecutor {
}
pub fn build_pool() -> DbPool {
std::env::set_var("RUST_LOG", "actix_web=debug,diesel=debug");
dotenv::dotenv().ok();
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL");

View File

@ -13,7 +13,6 @@ pub mod schema;
#[actix_rt::main]
async fn main() -> Result<(), String> {
std::env::set_var("RUST_LOG", "actix_web=debug,diesel=debug");
env_logger::init();
dotenv::dotenv().ok();