lib/airbrake/sender.rb in airbrake-3.1.11 vs lib/airbrake/sender.rb in airbrake-3.1.12
- old
+ new
@@ -135,10 +135,10 @@
def url
URI.parse("#{protocol}://#{host}:#{port}").merge(api_url)
end
def log(opts = {})
- opts[:logger].send opts[:level], LOG_PREFIX + opts[:message] if opts[:logger]
+ (opts[:logger] || logger).send(opts[:level], LOG_PREFIX + opts[:message])
Airbrake.report_environment_info
Airbrake.report_response_body(opts[:response].body) if opts[:response] && opts[:response].respond_to?(:body)
Airbrake.report_notice(opts[:notice]) if opts[:notice]
end