remove debug env var read

This commit is contained in:
neri 2020-08-03 01:30:45 +02:00
parent c57d15c7e3
commit b553bd621b
1 changed files with 4 additions and 5 deletions

View File

@ -145,10 +145,10 @@ fn get_db_url() -> String {
}; };
format!( format!(
"postgresql://{}{}/{}", "postgresql://{auth}{host}/{name}",
auth, auth = auth,
env::var("DATABASE_HOST").unwrap_or_else(|_| "localhost".to_string()), host = env::var("DATABASE_HOST").unwrap_or_else(|_| "localhost".to_string()),
env::var("DATABASE_NAME").unwrap_or_else(|_| "datatrash".to_string()) name = env::var("DATABASE_NAME").unwrap_or_else(|_| "datatrash".to_string())
) )
} }
@ -178,7 +178,6 @@ struct Config {
#[actix_rt::main] #[actix_rt::main]
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
dbg!(env::var("ASDF"));
if env::var("RUST_LOG").is_err() { if env::var("RUST_LOG").is_err() {
env::set_var("RUST_LOG", "info"); env::set_var("RUST_LOG", "info");
} }