Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Raven.config(dsn, {
dataCallback: function(data) {
var stack = data.stacktrace;
if (!stack) return data;
var normalize = function(filename) {
return filename.split("/www/", 2)[-1];
var frame;
for (var i = 0; i < stack.frames.length; i++) {
frame.filename = normalize(stack.frames[i].filename);
return data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.