Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove api key from log

adilson0626a16044a2
diff --git a/backend/src/services/app-connection/litellm/litellm-connection-fns.ts b/backend/src/services/app-connection/litellm/litellm-connection-fns.ts
index 4511717bb7..ee389aa649 100644
--- a/backend/src/services/app-connection/litellm/litellm-connection-fns.ts
+++ b/backend/src/services/app-connection/litellm/litellm-connection-fns.ts
@@ -28,7 +28,10 @@ export const validateLiteLLMConnectionCredentials = async (config: TLiteLLMConne
validateStatus: (status) => status === 200
});
} catch (error: unknown) {
- logger.error(error);
+ logger.error(
+ { errorMessage: error instanceof Error ? error.message : "Unknown error" },
+ "Failed to validate LiteLLM connection credentials"
+ );
if (error instanceof BadRequestError) {
throw error;
}