Notify errors to Rollbar
This commit is contained in:
parent
fc96518c92
commit
73b18af6ff
|
@ -9,6 +9,7 @@ class DeletionWorker
|
||||||
User.find(resource_id).destroy!
|
User.find(resource_id).destroy!
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.info "failed to delete user: #{e.message}"
|
logger.info "failed to delete user: #{e.message}"
|
||||||
|
Rollbar.error(e)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,6 +22,7 @@ class QuestionWorker
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.info "failed to ask question: #{e.message}"
|
logger.info "failed to ask question: #{e.message}"
|
||||||
|
Rollbar.error(e)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,6 +12,7 @@ class ShareWorker
|
||||||
service.post(Answer.find(answer_id)) if services.include? service.provider
|
service.post(Answer.find(answer_id)) if services.include? service.provider
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.info "failed to post answer #{answer_id} to #{service.provider} for user #{user_id}: #{e.message}"
|
logger.info "failed to post answer #{answer_id} to #{service.provider} for user #{user_id}: #{e.message}"
|
||||||
|
Rollbar.error(e)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -21,7 +21,8 @@ class Exporter
|
||||||
collect_smiles
|
collect_smiles
|
||||||
finalize
|
finalize
|
||||||
publish
|
publish
|
||||||
rescue => _
|
rescue => e
|
||||||
|
Rollbar.error(e)
|
||||||
@user.export_processing = false
|
@user.export_processing = false
|
||||||
@user.save validate: false
|
@user.save validate: false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue