lib/contrast/config/service_configuration.rb in contrast-agent-3.15.0 vs lib/contrast/config/service_configuration.rb in contrast-agent-3.16.0
- old
+ new
@@ -7,16 +7,18 @@
module Contrast
module Config
# Common Configuration settings. Those in this section pertain to the
# communication between the Agent & the Service.
class ServiceConfiguration < BaseConfiguration
+ # We don't set these b/c we've been asked to handle the default values of
+ # these settings differently, logging when we have to use them.
DEFAULT_HOST = '127.0.0.1'
DEFAULT_PORT = '30555'
KEYS = {
enable: EMPTY_VALUE,
- host: Contrast::Config::DefaultValue.new(DEFAULT_HOST),
- port: Contrast::Config::DefaultValue.new(DEFAULT_PORT),
+ host: EMPTY_VALUE,
+ port: EMPTY_VALUE,
socket: EMPTY_VALUE,
logger: Contrast::Config::LoggerConfiguration
}.cs__freeze
def initialize hsh