Skip to content

Instantly share code, notes, and snippets.

@chrisroos
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisroos/0b83fc5819c8248ce06e to your computer and use it in GitHub Desktop.
Save chrisroos/0b83fc5819c8248ce06e to your computer and use it in GitHub Desktop.
Functions that help when dealing with large numbers of exceptions in Honeybadger
// 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