lib/contrast/logger/application.rb in contrast-agent-6.0.0 vs lib/contrast/logger/application.rb in contrast-agent-6.1.0

- old
+ new

@@ -1,10 +1,8 @@ # Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true -require 'contrast/utils/exclude_key' - module Contrast module Logger # Our decorator for the Ougai logger allowing for the logging of the # application environment, used to provide context during troubleshooting. module Application @@ -29,11 +27,9 @@ return unless info? loggable = ::Contrast::CONFIG.loggable info('Current configuration', configuration: loggable) env_keys = ENV.keys.select do |env_key| - next if Contrast::Utils::ExcludeKey.excludable? env_key.to_s - env_key&.to_s&.start_with?(Contrast::Components::Config::CONTRAST_ENV_MARKER) end env_items = env_keys.map { |env_key| Contrast::Utils::EnvConfigurationItem.new(env_key, nil) } env_translations = env_items.each_with_object({}) do |conversion, hash| hash[conversion.key] = conversion.dot_path_array.join('.')