lib/airbrake.rb in airbrake-3.1.12 vs lib/airbrake.rb in airbrake-3.1.13

- old
+ new

@@ -6,18 +6,10 @@ require 'net/http' require 'net/https' require 'rubygems' require 'logger' -begin - require 'active_support/core_ext/object/blank' -rescue - require 'activesupport' - require 'activesupport/core_ext' -end - - require 'airbrake/version' require 'airbrake/configuration' require 'airbrake/notice' require 'airbrake/sender' require 'airbrake/response' @@ -64,20 +56,21 @@ # Returns the Ruby version, Rails version, and current Rails environment def environment_info info = "[Ruby: #{RUBY_VERSION}]" info << " [#{configuration.framework}]" if configuration.framework info << " [Env: #{configuration.environment_name}]" if configuration.environment_name + info end # Writes out the given message to the #logger def write_verbose_log(message) logger.debug LOG_PREFIX + message if logger end # Look for the Rails logger currently defined def logger self.configuration.logger || - Logger.new(RUBY_PLATFORM =~ /(mingw|bccwin|wince|mswin32)/i ? 'NUL:' : '/dev/null') + Logger.new(nil) end # Call this method to modify defaults in your initializers. # # @example