Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.