lib/contrast/logger/application.rb in contrast-agent-7.3.0 vs lib/contrast/logger/application.rb in contrast-agent-7.3.1

- old
+ new

@@ -15,12 +15,12 @@ agent_version: Contrast::Agent::VERSION, ruby_version: RUBY_VERSION) ENV.each do |env_key, env_value| env_key = env_key.to_s next unless ENV_KEYS.include?(env_key) || - (env_key.start_with?(Contrast::Components::Config::CONTRAST_ENV_MARKER) && - !env_key.start_with?("#{ Contrast::Components::Config::CONTRAST_ENV_MARKER }API")) + (env_key.start_with?(Contrast::Configuration::CONTRAST_ENV_MARKER) && + !env_key.start_with?("#{ Contrast::Configuration::CONTRAST_ENV_MARKER }API")) info('Environment settings', key: env_key, value: env_value) end end @@ -28,10 +28,10 @@ return unless info? loggable = ::Contrast::CONFIG.loggable info('Current configuration', configuration: loggable) env_keys = ENV.keys.select do |env_key| - env_key&.to_s&.start_with?(Contrast::Components::Config::CONTRAST_ENV_MARKER) + env_key&.to_s&.start_with?(Contrast::Configuration::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('.') end