Notify errors to Rollbar

This commit is contained in:
Georg Gadinger 2017-03-31 23:17:36 +02:00
parent fc96518c92
commit 73b18af6ff
4 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ class DeletionWorker
User.find(resource_id).destroy!
rescue => e
logger.info "failed to delete user: #{e.message}"
Rollbar.error(e)
end
end
end

View File

@ -22,6 +22,7 @@ class QuestionWorker
end
rescue => e
logger.info "failed to ask question: #{e.message}"
Rollbar.error(e)
end
end
end

View File

@ -12,6 +12,7 @@ class ShareWorker
service.post(Answer.find(answer_id)) if services.include? service.provider
rescue => e
logger.info "failed to post answer #{answer_id} to #{service.provider} for user #{user_id}: #{e.message}"
Rollbar.error(e)
end
end
end

View File

@ -21,7 +21,8 @@ class Exporter
collect_smiles
finalize
publish
rescue => _
rescue => e
Rollbar.error(e)
@user.export_processing = false
@user.save validate: false
end