Sha256: e196d3abbee868013bf6602591d37eb12ffc3227df8b79397d1c9581991e4db7

Contents?: true

Size: 400 Bytes

Versions: 62

Compression:

Stored size: 400 Bytes

Contents

module ForemanOpenscap
  module BodyLogExtensions
    extend ActiveSupport::Concern

    def log_response_body
      return super unless skip_body_log.include?(action_name)
      logger.debug { logger_msg }
    end

    def skip_body_log
      ['xml']
    end

    def logger_msg
      "Logging response body of #{response.body.length} characters skipped when downloading DS files"
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
foreman_openscap-10.0.2 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-10.0.1 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-10.0.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-9.0.4 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-9.0.3 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-9.0.2 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-9.0.1 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-9.0.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-8.0.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-7.1.1 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-7.1.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-7.0.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-6.0.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.2.3 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.2.2 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.1.1 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.2.1 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.2.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.1.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb
foreman_openscap-5.0.0 app/controllers/concerns/foreman_openscap/body_log_extensions.rb