Sha256: 7b6145424307debfdf18c77efd14d5e86900da7103c0e28b391a8d7fed87560a

Contents?: true

Size: 413 Bytes

Versions: 15

Compression:

Stored size: 413 Bytes

Contents

class SlackLogDevice

  module DebugExceptions

    def log_error(request, wrapper)
      logger = logger(request)
      return unless logger
      exception = wrapper.exception
      return if defined?(ActionController::RoutingError) && exception.is_a?(ActionController::RoutingError)
      exception.instance_variable_set(:@__slack_log_device_request, request)
      logger.fatal(exception)
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
slack_log_device-6.0.1 lib/slack_log_device/debug_exceptions.rb
slack_log_device-6.0.0 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.1.5 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.1.4 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.1.3 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.1.2 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.1.1 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.1.0 lib/slack_log_device/debug_exceptions.rb
slack_log_device-5.0.0 lib/slack_log_device/debug_exceptions.rb
slack_log_device-4.2.0 lib/slack_log_device/debug_exceptions.rb
slack_log_device-4.1.0 lib/slack_log_device/debug_exceptions.rb
slack_log_device-4.0.3 lib/slack_log_device/debug_exceptions.rb
slack_log_device-4.0.2 lib/slack_log_device/debug_exceptions.rb
slack_log_device-4.0.1 lib/slack_log_device/debug_exceptions.rb
slack_log_device-4.0.0 lib/slack_log_device/debug_exceptions.rb