From bac91e8edab98a77d1196adb3ba3d16b533ebe73 Mon Sep 17 00:00:00 2001 From: Darren Oakley Date: Tue, 27 Jan 2015 17:41:44 +0000 Subject: [PATCH] Remove the debugging --- lib/bandiera.rb | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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