Skip to content

Commit e6d31a0

Browse files
MBDeveloperflovilmart
authored andcommitted
Add function name to the request object - this can help in generic way to log the function calls. (#2309)
1 parent a87ab6f commit e6d31a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Routers/FunctionsRouter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export class FunctionsRouter extends PromiseRouter {
6666
user: req.auth && req.auth.user,
6767
installationId: req.info.installationId,
6868
log: req.config.loggerController && req.config.loggerController.adapter,
69-
headers: req.headers
69+
headers: req.headers,
70+
functionName: req.params.functionName
7071
};
7172

7273
if (theValidator && typeof theValidator === "function") {

0 commit comments

Comments
 (0)