Remove Sentry

This commit is contained in:
2024-03-16 07:38:45 +11:00
parent 6cd71972b1
commit e385e6782e
8 changed files with 6465 additions and 4823 deletions

View File

@@ -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"