lib/airbrake.rb in airbrake-3.0.9 vs lib/airbrake.rb in airbrake-3.1.0

- old
+ new

@@ -16,11 +16,10 @@ require 'airbrake/rack' require 'airbrake/user_informer' require 'airbrake/railtie' if defined?(Rails::Railtie) -# Gem for applications to automatically post errors to the Airbrake of their choice. module Airbrake API_VERSION = "2.2" LOG_PREFIX = "** [Airbrake] " HEADERS = { @@ -53,11 +52,11 @@ end # Returns the Ruby version, Rails version, and current Rails environment def environment_info info = "[Ruby: #{RUBY_VERSION}]" - info << " [#{configuration.framework}]" - info << " [Env: #{configuration.environment_name}]" + info << " [#{configuration.framework}]" if configuration.framework + info << " [Env: #{configuration.environment_name}]" if configuration.environment_name end # Writes out the given message to the #logger def write_verbose_log(message) logger.info LOG_PREFIX + message if logger