The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
fix: add debug logging for ai streaming (#2275)
Lucas Smith2ee6b90c9978
diff --git a/apps/remix/server/api/ai/detect-fields.ts b/apps/remix/server/api/ai/detect-fields.tsindex 76620ce47..6571569f0 100644--- a/apps/remix/server/api/ai/detect-fields.ts+++ b/apps/remix/server/api/ai/detect-fields.ts@@ -116,6 +116,10 @@ export const detectFieldsRoute = new Hono<HonoEnv>().post(clearInterval(interval);}+ // The logger below it stringifies the error, using `console.error`+ // to attempt to get a stack trace+ console.error(error);+logger.error({event: 'ai.detect-fields.error',error,diff --git a/apps/remix/server/api/ai/detect-recipients.ts b/apps/remix/server/api/ai/detect-recipients.tsindex 353036ed6..7ffb809c4 100644--- a/apps/remix/server/api/ai/detect-recipients.ts+++ b/apps/remix/server/api/ai/detect-recipients.ts@@ -114,6 +114,10 @@ export const detectRecipientsRoute = new Hono<HonoEnv>().post(clearInterval(interval);}+ // The logger below it stringifies the error, using `console.error`+ // to attempt to get a stack trace+ console.error(error);+logger.error({event: 'ai.detect-recipients.error',error,