lib/contrast/config/service_configuration.rb in contrast-agent-6.4.0 vs lib/contrast/config/service_configuration.rb in contrast-agent-6.5.0
- old
+ new
@@ -1,9 +1,9 @@
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
-require 'contrast/config/logger_configuration'
+require 'contrast/components/logger'
module Contrast
module Config
# Common Configuration settings. Those in this section pertain to the communication between the Agent & the Service
class ServiceConfiguration
@@ -29,16 +29,16 @@
@enable = hsh[:enable]
@host = hsh[:host]
@port = hsh[:port]
@socket = hsh[:socket]
- @logger = Contrast::Config::LoggerConfiguration.new(hsh[:logger])
+ @logger = Contrast::Components::Logger::Interface.new(hsh[:logger])
@bypass = hsh[:bypass]
end
- # @return [Contrast::Config::LoggerConfiguration]
+ # @return [Contrast::Components::Logger::Interface]
def logger
- @logger ||= Contrast::Config::LoggerConfiguration.new
+ @logger ||= Contrast::Components::Logger::Interface.new
end
# @return [Boolean, false]
def bypass
@bypass.nil? ? false : @bypass