This commit is contained in:
Dave Horton
2020-02-28 10:25:43 -05:00
parent 19d674f531
commit 8cf107c34c
7 changed files with 9 additions and 8 deletions

View File

@@ -83,7 +83,10 @@ module.exports = function(srf, logger) {
else app.notifier = {request: () => {}};
req.locals.application = app;
logger.debug(app, `retrieved application for ${req.locals.calledNumber}`);
const obj = Object.assign({}, app);
delete obj.requestor;
delete obj.notifier;
logger.info({app: obj}, `retrieved application for incoming call to ${req.locals.calledNumber}`);
req.locals.callInfo = new CallInfo({req, app, direction: CallDirection.Inbound});
next();
} catch (err) {