feat(config): load application secret with logging

- add logging to indicate the source of the application secret
- log the configuration root to aid in debugging credential file loading
This commit is contained in:
Jeremiah Russell
2025-10-23 06:43:37 +01:00
committed by Jeremiah Russell
parent 2ec8e00119
commit 89fce9792e

View File

@@ -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);