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