stve / airbrake-api

Airbrake API Ruby Client
https://rubygems.org/gems/airbrake-api
MIT License
44 stars 23 forks source link

make batch processing possible, so I do not need to wait for all errors to be fetched #7

Closed grosser closed 13 years ago

grosser commented 13 years ago
   STDOUT.sync = true
    Hoptoad::Notice.find_all_by_error_id(error_id) do |batch|
      batch.each do |notice|
        result = system "curl --silent '#{notice.request.url}' > /dev/null"
        print (result ? '.' : 'F')
      end
    end