fixed: don't log carrier register_credential to log (#244)

* fixed: don't log carrier register_credential to log

* upgrade realtimedb helper 0.8.21
This commit is contained in:
Hoan Luu Huu
2026-06-19 07:08:52 -04:00
committed by GitHub
parent 6ddfbc9373
commit 6608286e8c
4 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ module.exports = function(srf, logger) {
logger.info('identifyAccount: rejecting call from carrier because DID has not been provisioned');
return res.send(404, 'Number Not Provisioned');
}
logger.info({gateway}, 'identifyAccount: incoming call from gateway');
const {register_password, ...gatewayForLog} = gateway;
logger.info({gateway: gatewayForLog}, 'identifyAccount: incoming call from gateway');
const appSidHeader = req.get('x-application-sid');
if (appSidHeader && appSidHeader == application_sid) {
logger.info({callId}, 'Loop Detected, x-application-sid header on incoming call matches applicationSid');