Skip to content

Instantly share code, notes, and snippets.

@alexgb
Created October 30, 2014 18:59
Show Gist options
  • Save alexgb/e09218d930a955d84a83 to your computer and use it in GitHub Desktop.
Save alexgb/e09218d930a955d84a83 to your computer and use it in GitHub Desktop.
Rollbar debugging
(function() {
var oldRollbarError = Rollbar.error,
baseLogArgs = ['%c Rollbar ', 'background: #f55; color: white;'];
Rollbar.error = function() {
var args = Array.prototype.slice.call(arguments, 0);
console.log.apply(console, baseLogArgs.concat(args));
return oldRollbarError.apply(Rollbar, arguments);
};
console.log('Rollbar debug loaded');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment