lib/wat_catcher/report.rb in wat_catcher-0.10.6 vs lib/wat_catcher/report.rb in wat_catcher-0.10.7
- old
+ new
@@ -11,10 +11,10 @@
log_report
end
def send_report
return if WatCatcher.configuration.disabled
- ::WatCatcher::Poster.perform_later("#{WatCatcher.configuration.host}/wats", params.to_json)
+ ::WatCatcher::SidekiqPoster.perform_async("#{WatCatcher.configuration.host}/wats", params)
end
def log_report
return if WatCatcher.configuration.disabled
Rails.logger.error( "WatCatcher::error: " + base_description.tap {|x| x.delete(:rails_root) }.to_json )