Sha256: 1edf133271edea9dcb5deff4ae16c7b0e50d21a1249caecf8a19c80c097be039

Contents?: true

Size: 339 Bytes

Versions: 7

Compression:

Stored size: 339 Bytes

Contents

# Log actual exceptions, not a string representation
require "action_dispatch"

module ActionDispatch
  class DebugExceptions
    private

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_semantic_logger-4.14.0 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
rails_semantic_logger-4.13.0 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
rails_semantic_logger-4.12.0 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
rails_semantic_logger-4.11.0 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
rails_semantic_logger-4.10.0 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
rails_semantic_logger-4.9.0 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb
rails_semantic_logger-4.6.2 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb