remove debug env var read
This commit is contained in:
parent
c57d15c7e3
commit
b553bd621b
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue