mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 03:15:11 +00:00
fix(server): serialize error stacks in logs
This commit is contained in:
@@ -62,7 +62,7 @@ export namespace Server {
|
||||
log.error("failed", {
|
||||
error: err,
|
||||
message: msg,
|
||||
stack,
|
||||
stack: stack ? JSON.stringify(stack) : undefined,
|
||||
named,
|
||||
})
|
||||
if (err instanceof NamedError) {
|
||||
|
||||
Reference in New Issue
Block a user