minor logging

This commit is contained in:
Dave Horton
2024-11-12 09:27:12 -05:00
parent a714190aa4
commit bb9e5e98f5
2 changed files with 2 additions and 0 deletions

View File

@@ -430,6 +430,7 @@ class CallSession extends Emitter {
const {writeCallCount, writeCallCountSP, writeCallCountApp} = this.req.srf.locals; const {writeCallCount, writeCallCountSP, writeCallCountApp} = this.req.srf.locals;
if (!this.req.locals.callCountNudged) { if (!this.req.locals.callCountNudged) {
this.req.locals.callCountNudged = true; this.req.locals.callCountNudged = true;
this.logger.debug('decrementing call count at end of call');
await nudgeCallCounts(this.logger, { await nudgeCallCounts(this.logger, {
service_provider_sid: this.service_provider_sid, service_provider_sid: this.service_provider_sid,
account_sid: this.account_sid, account_sid: this.account_sid,

View File

@@ -263,6 +263,7 @@ module.exports = function(srf, logger) {
res.once('end', async({status}) => { res.once('end', async({status}) => {
if (status > 200 && !req.locals.callCountNudged) { if (status > 200 && !req.locals.callCountNudged) {
req.locals.callCountNudged = true; req.locals.callCountNudged = true;
logger.debug('decrementing call count due to call rejection');
nudgeCallCounts(logger, { nudgeCallCounts(logger, {
service_provider_sid, service_provider_sid,
account_sid, account_sid,