mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 07:52:03 +00:00
zen: error logging
This commit is contained in:
parent
7daea69e13
commit
fbabc97c4c
1 changed files with 1 additions and 0 deletions
|
|
@ -330,6 +330,7 @@ export async function handler(
|
|||
logger.metric({
|
||||
"error.type": error.constructor.name,
|
||||
"error.message": error.message,
|
||||
"error.cause": error.cause?.toString(),
|
||||
})
|
||||
|
||||
// Note: both top level "type" and "error.type" fields are used by the @ai-sdk/anthropic client to render the error message.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue