Move yabeda/prometheus stuff to the gem
This commit is contained in:
@@ -42,8 +42,8 @@ module RequestForgeryProtection
|
||||
|
||||
Rails.logger.info "CSRF protection check: " + info.map { it.join(" ") }.join(", ")
|
||||
|
||||
if (origin && token) != sec_fetch_site
|
||||
Sentry.try :capture_message, "CSRF protection mismatch", level: :info, extra: { info: info }
|
||||
if defined?(Sentry) && (origin && token) != sec_fetch_site
|
||||
Sentry.capture_message "CSRF protection mismatch", level: :info, extra: { info: info }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user