lib/sentry/rails/configuration.rb in sentry-rails-5.13.0 vs lib/sentry/rails/configuration.rb in sentry-rails-5.14.0

- old
+ new

@@ -10,10 +10,10 @@ add_post_initialization_callback do @rails = Sentry::Rails::Configuration.new @excluded_exceptions = @excluded_exceptions.concat(Sentry::Rails::IGNORE_DEFAULT) if ::Rails.logger - if ::Rails.logger.respond_to?(:broadcasts) + if defined?(::ActiveSupport::BroadcastLogger) && ::Rails.logger.is_a?(::ActiveSupport::BroadcastLogger) dupped_broadcasts = ::Rails.logger.broadcasts.map(&:dup) @logger = ::ActiveSupport::BroadcastLogger.new(*dupped_broadcasts) else @logger = ::Rails.logger.dup end