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

File diff suppressed because it is too large Load Diff

View File

@@ -6,8 +6,7 @@ module Micropub
include Deps["logger",
"settings",
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]
@@ -49,8 +48,6 @@ module Micropub
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"