Add function name to the request object - this can help in generic way to log the function calls. (#2309)

This commit is contained in:
MBDeveloper
2016-08-09 18:28:57 +03:00
committed by Florent Vilmart
parent a87ab6f1c4
commit e6d31a07ab

View File

@@ -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") {