Use class instead of class name for matching exception types
This commit is contained in:
parent
354407cd79
commit
9ef6e8fdc1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue