Skip to content

Commit

Permalink
Merge pull request #490 from jcurlier/bugfix/callback_not_called
Browse files Browse the repository at this point in the history
Call callback even if logging same as last error
  • Loading branch information
rokob authored Nov 3, 2017
2 parents 960a461 + 0ada4dd commit bda894c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdks/rollbar.js/src/rollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ Rollbar.prototype.captureLoad = function(ts) {

Rollbar.prototype._log = function(defaultLevel, item) {
if (this._sameAsLastError(item)) {
if (item.callback) {
item.callback();
}
return;
}
try {
Expand Down

0 comments on commit bda894c

Please sign in to comment.