Use class instead of class name for matching exception types

This commit is contained in:
Karina Kwiatek 2023-01-28 22:30:03 +01:00
parent 354407cd79
commit 9ef6e8fdc1
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ Sentry.init do |config|
# These are used for user-facing errors, not when something goes wrong
next if hint[:exception].is_a?(Errors::Base)
exception_class = hint[:exception].class.name
exception_class = hint[:exception].class
if exception_fingerprints.key?(exception_class)
event.fingerprint = [exception_fingerprints[hint[:exception].class.name]]
event.fingerprint = [exception_fingerprints[exception_class]]
end
event