Last active
August 29, 2015 14:09
-
-
Save chrisroos/0b83fc5819c8248ce06e to your computer and use it in GitHub Desktop.
Functions that help when dealing with large numbers of exceptions in Honeybadger
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
// Mark all Honeybadger exceptions as resolved if | |
// they don't have any error text | |
// This suggests they are Cloudflare errors in the | |
// current project | |
$('td.error').each(function() { | |
var overview = $('.overview', $(this)); | |
if (overview.text().trim() == '') { | |
var toggleButton = $('input[name="fault[resolved]"]', $(this).parent()); | |
toggleButton.click(); | |
}; | |
}); | |
// Mark all Honeybadger exceptions on a single page as resolved | |
$('input[name="fault[resolved]"]').each(function() { $(this).click() }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment