From 89fce9792e2f9fe5a990b32bd139709f8cdaa0c4 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 23 Oct 2025 06:43:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(config):=20load=20application?= =?UTF-8?q?=20secret=20with=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add logging to indicate the source of the application secret - log the configuration root to aid in debugging credential file loading --- src/client_config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client_config.rs b/src/client_config.rs index 1c134ab..8bac21b 100644 --- a/src/client_config.rs +++ b/src/client_config.rs @@ -306,6 +306,7 @@ impl ClientConfig { && let Ok(token_uri) = configs.get_string("token_uri") && let Ok(auth_uri) = configs.get_string("auth_uri") { + log::info!("Generating the application secret from the environment!"); ApplicationSecret { client_id, client_secret, @@ -318,6 +319,7 @@ impl ClientConfig { client_x509_cert_url: None, } } else { + log::info!("Generating the application secret from the credential file!"); let credential_file = configs.get_string("credential_file")?; log::info!("root: {config_root}"); let path = config_root.full_path().join(credential_file);