diff --git a/logger/logger.ts b/logger/logger.ts index 76a72bf..b19893d 100644 --- a/logger/logger.ts +++ b/logger/logger.ts @@ -11,7 +11,7 @@ const hostName = os.hostname() const convertError = format((event) => { if (event?.error instanceof Error) { event.error = { - code: event.error.code, + ...event.error, message: event.error.message, stack: event.error.stack, }