Additional logging when we get delivery receipt for unknown msg

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-08-17 17:34:27 -07:00
parent 4ef36cc95c
commit f14ac69f2a

View file

@ -59,8 +59,19 @@
}.bind(this));
// TODO: consider keeping a list of numbers we've
// successfully delivered to?
} else {
console.log(
'No message for delivery receipt',
receipt.get('source'),
receipt.get('timestamp')
);
}
}.bind(this));
}.bind(this)).catch(function(error) {
console.log(
'DeliveryReceipts.onReceipt error:',
error && error.stack ? error.stack : error
);
});
}
}))();
})();