mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 17:35:05 +10:00
fix: add debug logging for ai streaming (#2275)
This commit is contained in:
@@ -116,6 +116,10 @@ export const detectFieldsRoute = new Hono<HonoEnv>().post(
|
|||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The logger below it stringifies the error, using `console.error`
|
||||||
|
// to attempt to get a stack trace
|
||||||
|
console.error(error);
|
||||||
|
|
||||||
logger.error({
|
logger.error({
|
||||||
event: 'ai.detect-fields.error',
|
event: 'ai.detect-fields.error',
|
||||||
error,
|
error,
|
||||||
|
|||||||
@@ -114,6 +114,10 @@ export const detectRecipientsRoute = new Hono<HonoEnv>().post(
|
|||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The logger below it stringifies the error, using `console.error`
|
||||||
|
// to attempt to get a stack trace
|
||||||
|
console.error(error);
|
||||||
|
|
||||||
logger.error({
|
logger.error({
|
||||||
event: 'ai.detect-recipients.error',
|
event: 'ai.detect-recipients.error',
|
||||||
error,
|
error,
|
||||||
|
|||||||
Reference in New Issue
Block a user