From 1ae34efb937a3485c3a61f5a0b044ceb2d135e58 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 16 Oct 2025 11:00:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(config):=20resolve=20credent?= =?UTF-8?q?ial=20file=20path=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix the problem of reading credential file in the production environment - use config_root to find credential file --- src/client_config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client_config.rs b/src/client_config.rs index 7f01f42..ee6f987 100644 --- a/src/client_config.rs +++ b/src/client_config.rs @@ -40,7 +40,9 @@ impl ClientConfig { } } else { let credential_file = configs.get_string("credential_file")?; - let path = PathBuf::from(root).join(credential_file); + log::info!("root: {config_root}"); + let path = PathBuf::from(config_root.to_string()).join(credential_file); + log::info!("path: {}", path.display()); let json_str = fs::read_to_string(path).expect("could not read path"); let console: ConsoleApplicationSecret =