Improved API key retrieval for local embedding (#675)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-02-22 15:09:51 +01:00
1 parent e7707ba482
commit 6c4507ef82
2 files changed
+7 -3

No files matched your search

@@ -27,7 +27,11 @@ public sealed partial class RustService
if (!secret.Success && !isTrying)
this.logger!.LogError($"Failed to get the API key for '{prefix}::{secretId.SecretId}::{secretId.SecretName}::api_key': '{secret.Issue}'");
this.logger!.LogDebug($"Successfully retrieved the API key for '{prefix}::{secretId.SecretId}::{secretId.SecretName}::api_key'.");
if (secret.Success)
this.logger!.LogDebug($"Successfully retrieved the API key for '{prefix}::{secretId.SecretId}::{secretId.SecretName}::api_key'.");
else if (isTrying)
this.logger!.LogDebug($"No API key configured for '{prefix}::{secretId.SecretId}::{secretId.SecretName}::api_key' (try mode): '{secret.Issue}'");
return secret;
}