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