Remove Sentry
This commit is contained in:
@@ -14,8 +14,7 @@ module Adamantium
|
||||
"settings",
|
||||
"view_cache.cacher",
|
||||
not_found_view: "views.not_found",
|
||||
error_view: "views.error",
|
||||
sentry: "sentry.client"]
|
||||
error_view: "views.error"]
|
||||
|
||||
include Dry::Matcher.for(:handle, with: Dry::Matcher::ResultMatcher)
|
||||
include Dry::Monads[:result]
|
||||
@@ -35,8 +34,6 @@ module Adamantium
|
||||
def handle_error(req, res, exception)
|
||||
raise exception if settings.raise_exceptions
|
||||
|
||||
sentry.capture_exception(exception)
|
||||
|
||||
res.status = 500
|
||||
res.render error_view
|
||||
res.headers["Cache-Control"] = "no-store, max-age=0"
|
||||
|
Reference in New Issue
Block a user