Skip to content

Commit

Permalink
fix(app-service): fix cloud function unsafe log #34
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jan 14, 2022
1 parent 0e1b321 commit ecab8bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/app-service/src/router/function/invoke.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: Maslow<wangfugen@126.com>
* @Date: 2021-07-30 10:30:29
* @LastEditTime: 2021-11-05 13:45:36
* @LastEditTime: 2022-01-14 16:30:39
* @Description:
*/

Expand Down Expand Up @@ -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
})
}

Expand Down

0 comments on commit ecab8bf

Please sign in to comment.