Skip to content

Commit

Permalink
Additional logging when we get delivery receipt for unknown msg
Browse files Browse the repository at this point in the history
FREEBIE
  • Loading branch information
scottnonnenberg committed Aug 23, 2017
1 parent 4ef36cc commit f14ac69
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion js/delivery_receipts.js
Expand Up @@ -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
);
});
}
}))();
})();

0 comments on commit f14ac69

Please sign in to comment.