parse_args: remove duplicate test of dotenv variables
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -142,13 +142,6 @@ SMR Unerledigt: 089 92529 60222")
|
|||||||
env_prefix.push_str("_");
|
env_prefix.push_str("_");
|
||||||
viperus.set_env_prefix(&env_prefix);
|
viperus.set_env_prefix(&env_prefix);
|
||||||
|
|
||||||
// respect dotenv environment (e.g for testing)
|
|
||||||
// -> overwrites the preset default values
|
|
||||||
println!(
|
|
||||||
"RUST_LOG={}",
|
|
||||||
dotenv::var("RUST_LOG").unwrap_or_else(|_| String::from("None"))
|
|
||||||
);
|
|
||||||
|
|
||||||
// enable caching and automatic update of environment values
|
// enable caching and automatic update of environment values
|
||||||
viperus.cache(true);
|
viperus.cache(true);
|
||||||
viperus.automatic_env(true);
|
viperus.automatic_env(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user