<NME> rails.rb
<BEF> require 'librato/rack'
require_relative 'rails/configuration'
require_relative 'rails/tracker'
require_relative 'rails/version'

# must load after all module setup and in this order
if defined?(Rails)
  require_relative 'rails/version_specifier'
  require_relative 'rails/railtie'
  require_relative 'rails/subscribers'
  require_relative 'rails/helpers'
end
        @logger ||= if on_heroku
          logger = Logger.new(STDOUT)
          logger.level = Logger::INFO
        else
          ::Rails.logger
        end

<MSG> Ensure we return the right logger object

<DFF> @@ -207,6 +207,7 @@ module Librato
         @logger ||= if on_heroku
           logger = Logger.new(STDOUT)
           logger.level = Logger::INFO
+          logger
         else
           ::Rails.logger
         end

{'addition_count': 1, 'commit_subject': 'Ensure we return the right logger object', 'deletion_count': 0, 'file_extension': '.rb', 'lang': 'rb', 'license': 'bsd-3-clause', 'repo_name': 'librato/librato-rails'}