From ecab8bf9dd5cae9cd1933bf28bab5e68bc0335cd Mon Sep 17 00:00:00 2001 From: maslow Date: Fri, 14 Jan 2022 16:38:12 +0800 Subject: [PATCH] fix(app-service): fix cloud function unsafe log #34 --- packages/app-service/src/router/function/invoke.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/app-service/src/router/function/invoke.ts b/packages/app-service/src/router/function/invoke.ts index 77ced86eda..3379c1ffab 100644 --- a/packages/app-service/src/router/function/invoke.ts +++ b/packages/app-service/src/router/function/invoke.ts @@ -1,7 +1,7 @@ /* * @Author: Maslow * @Date: 2021-07-30 10:30:29 - * @LastEditTime: 2021-11-05 13:45:36 + * @LastEditTime: 2022-01-14 16:30:39 * @Description: */ @@ -73,9 +73,8 @@ export async function handleInvokeFunction(req: Request, res: Response) { logger.error(requestId, `invoke function ${func_name} invoke error: `, result) return res.status(400).send({ - error: 'invoke function got error', - detail: Config.isProd ? undefined : result.error, - logs: Config.isProd ? undefined : result.logs + error: 'invoke cloud function got error, please check the function logs', + requestId }) }