Sha256: 7d91deb85a995ad6cf66352edd2f8ed87bebee2081baf5636f565650655b91af

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

module SnakeEyes
  module Logging
    private

    def log(snake_eyes_params)
      return unless SnakeEyes.log_snake_eyes_parameters

      ignored_params = ActionController::LogSubscriber::INTERNAL_PARAMS
      filtered_params =
        request.send(:parameter_filter).filter(
          snake_eyes_params.except(*ignored_params)
        )

      logger.info "  SnakeEyes Parameters: #{_prepare(filtered_params).inspect}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snake-eyes-2.0.0 lib/snake_eyes/logging.rb