Notify errors to Rollbar
This commit is contained in:
parent
fc96518c92
commit
73b18af6ff
|
@ -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
|
||||
|
|
|
@ -22,6 +22,7 @@ class QuestionWorker
|
|||
end
|
||||
rescue => e
|
||||
logger.info "failed to ask question: #{e.message}"
|
||||
Rollbar.error(e)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue