Sha256: 9e09f07cf5ef050c1f405538d50ddfe3567baa93a6652f81fac1ea3c17eb0854

Contents?: true

Size: 344 Bytes

Versions: 44

Compression:

Stored size: 344 Bytes

Contents

# Log actual exceptions, not a string representation

class ActionDispatch::DebugExceptions # rubocop:disable ClassAndModuleChildren
  private

  alias_method :orig_log_error, :log_error

  def log_error(_request, wrapper)
    ActiveSupport::Deprecation.silence do
      ActionController::Base.logger.fatal(wrapper.exception)
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
sapience-2.4.0 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.3.5 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.3.4 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.3.3 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.2.3 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.2.1 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.2.0 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.1.0 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.0.5 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.0.4 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.0.3 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.0.2 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.0.1 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-2.0.0 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-1.0.15 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-1.0.14 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-1.0.13 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-1.0.12 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-1.0.11 lib/sapience/extensions/action_dispatch/debug_exceptions.rb
sapience-1.0.10 lib/sapience/extensions/action_dispatch/debug_exceptions.rb