From ab8c6515b828a91210fda910fc3c4834c2edfdd2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 12 Apr 2019 00:33:26 +0900 Subject: [PATCH] Fix error log --- src/server/api/call.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/api/call.ts b/src/server/api/call.ts index 885c62266..d72f2cc9e 100644 --- a/src/server/api/call.ts +++ b/src/server/api/call.ts @@ -80,7 +80,11 @@ export default async (endpoint: string, user: User, app: App, data: any, file?: apiLogger.error(`Internal error occurred in ${ep.name}`, { ep: ep.name, ps: data, - e: e + e: { + message: e.message, + code: e.name, + stack: e.stack + } }); throw new ApiError(null, { e: {