From f01daae6a8a8dc57545c21c2570da9744d41bfc7 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Tue, 22 Oct 2024 00:37:25 +0200 Subject: [PATCH] server: Fix env variable warning --- server/src/infra/configuration.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/infra/configuration.rs b/server/src/infra/configuration.rs index 4a8c042..44ad34e 100644 --- a/server/src/infra/configuration.rs +++ b/server/src/infra/configuration.rs @@ -583,10 +583,10 @@ where let expected_keys = expected_keys(&figment_config.data()?[&Profile::Default]); env_variable_provider().data().unwrap()[&Profile::default()] .keys() - .map(|k| k.to_ascii_uppercase()) + .map(|k| format!("LLDAP_{}", k.to_ascii_uppercase())) .filter(|k| !expected_keys.contains(k.as_str())) .for_each(|k| { - eprintln!("WARNING: Unknown environment variable: LLDAP_{}", k); + eprintln!("WARNING: Unknown environment variable: {}", k); }); } config.server_setup = Some(get_server_setup(