Add function name to the request object - this can help in generic way to log the function calls. (#2309)
This commit is contained in:
committed by
Florent Vilmart
parent
a87ab6f1c4
commit
e6d31a07ab
@@ -66,7 +66,8 @@ export class FunctionsRouter extends PromiseRouter {
|
||||
user: req.auth && req.auth.user,
|
||||
installationId: req.info.installationId,
|
||||
log: req.config.loggerController && req.config.loggerController.adapter,
|
||||
headers: req.headers
|
||||
headers: req.headers,
|
||||
functionName: req.params.functionName
|
||||
};
|
||||
|
||||
if (theValidator && typeof theValidator === "function") {
|
||||
|
||||
Reference in New Issue
Block a user