diff --git a/lib/bandiera.rb b/lib/bandiera.rb index cc1fe38..344b6e1 100644 --- a/lib/bandiera.rb +++ b/lib/bandiera.rb @@ -24,11 +24,7 @@ def init(environment) end def logger - @logger ||= begin - logger = Macmillan::Utils::Logger::Factory.build_logger(:syslog, tag: 'bandiera') - logger.level = Logger::DEBUG - logger - end + @logger ||= Macmillan::Utils::Logger::Factory.build_logger(:syslog, tag: 'bandiera') end attr_writer :logger @@ -52,13 +48,7 @@ def build_statsd_client statsd = Statsd.new(ENV['STATSD_HOST'], ENV['STATSD_PORT']) statsd.namespace = statsd_namespace - decd_statsd = Macmillan::Utils::StatsdDecorator.new(statsd, ENV['RACK_ENV'], logger) - - logger.error(statsd.inspect) - logger.error(decd_statsd.inspect) - logger.error(ENV.inspect) - - decd_statsd + Macmillan::Utils::StatsdDecorator.new(statsd, ENV['RACK_ENV'], logger) end def statsd_namespace