lib/sapience/error_handler/sentry.rb in sapience-2.3.5 vs lib/sapience/error_handler/sentry.rb in sapience-2.4.0
- old
+ new
@@ -21,11 +21,12 @@
# Default: Sapience.config.default_level
#
# dsn: [String]
# Url to configure Sentry-Raven.
# Default: nil
- def initialize(options = {})
- fail ArgumentError, "Options should be a Hash" unless options.is_a?(Hash)
+ def initialize(opts = {})
+ fail ArgumentError, "Options should be a Hash" unless opts.is_a?(Hash)
+ options = opts.dup
options[:level] ||= :error
@sentry_logger_level = options[:level]
@sentry_dsn = options.delete(:dsn)
@configured = false