prune unused logging

This commit is contained in:
Dave Horton
2023-03-19 12:04:02 -04:00
parent 26053ec709
commit 690deed89d
6 changed files with 12 additions and 16 deletions

View File

@@ -27,7 +27,11 @@ module.exports = function(srf, logger) {
function initLocals(req, res, next) {
const callId = req.get('Call-ID');
logger.info({callId}, 'new incoming call');
logger.info({
callId,
callingNumber: req.callingNumber,
calledNumber: req.calledNumber
}, 'new incoming call');
if (!req.has('X-Account-Sid')) {
logger.info('getAccountDetails - rejecting call due to missing X-Account-Sid header');
return res.send(500);