Created
October 30, 2014 18:59
-
-
Save alexgb/e09218d930a955d84a83 to your computer and use it in GitHub Desktop.
Rollbar debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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