Skip to content

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

don't log error directly

Matheus Nogueira41cd56ab9808
diff --git a/backend/src/services/app-connection/convex/convex-connection-fns.ts b/backend/src/services/app-connection/convex/convex-connection-fns.ts
index 749f221113..2a72ad8740 100644
--- a/backend/src/services/app-connection/convex/convex-connection-fns.ts
+++ b/backend/src/services/app-connection/convex/convex-connection-fns.ts
@@ -32,7 +32,7 @@ export const validateConvexConnectionCredentials = async (config: TConvexConnect
validateStatus: (status) => status === 200
});
} catch (e) {
- logger.error(e, "failed to connect");
+ logger.error({ error: e instanceof Error ? e.message : "Unknown error" }, "failed to connect");
throw new UnauthorizedError({
message: "Unable to validate connection: verify that your access token and instance URL are correct"
});