Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Remove handlers for apps sending exceptions to Errbit #379

Merged
merged 1 commit into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ def makeLogsAvailable() {
stage("Output Error log") {
errors = sh(script: "test -s tmp/errors.log", returnStatus: true)
if (errors == 0) {
echo("The following errors were logged with sentry/errbit:")
echo("The following errors were logged with Sentry")
sh("cat tmp/errors.log")
} else {
echo("No errors were sent to sentry/errbit")
echo("No errors were sent to Sentry")
}
}

Expand Down
6 changes: 1 addition & 5 deletions diet-error-handler/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Diet Error Handler

This is a simple [Sinatra](http://www.sinatrarb.com/) app that is used as a
replacement to [Sentry](https://sentry.io) and [Errbit](https://errbit.com/) in
the end-to-end test environment.

The usage of Errbit is deprecated and once no more of our apps use it we'll
remove that integration.
replacement to [Sentry](https://sentry.io) in the end-to-end test environment.

It is used as means to create log files of errors that applications have
reported. Otherwise you have to find the errors in the individual application
Expand Down
12 changes: 0 additions & 12 deletions diet-error-handler/lib/notice.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
require "nokogiri"
require "json"
require_relative "notice/v2"
require_relative "notice/v3"
require_relative "notice/sentry"

module Notice
def self.from_v2(notice_xml)
xml = Nokogiri::XML(notice_xml.force_encoding("UTF-8"))
Notice::V2.new(xml, Time.now)
end

def self.from_v3(notice_json)
json = JSON.parse(notice_json.force_encoding("UTF-8"))
Notice::V3.new(json, Time.now)
end

def self.from_sentry(notice_json)
json = JSON.parse(notice_json.force_encoding("UTF-8"))
Notice::Sentry.new(json, Time.now)
Expand Down
31 changes: 0 additions & 31 deletions diet-error-handler/lib/notice/v2.rb

This file was deleted.

32 changes: 0 additions & 32 deletions diet-error-handler/lib/notice/v3.rb

This file was deleted.