error -> info (maybe .warn?)
This commit is contained in:
parent
26a517a650
commit
bde8b64977
|
@ -8,7 +8,7 @@ class DeletionWorker
|
||||||
begin
|
begin
|
||||||
User.find(resource_id).destroy!
|
User.find(resource_id).destroy!
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.error "failed to delete user: #{e.message}"
|
logger.info "failed to delete user: #{e.message}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,7 +19,7 @@ class QuestionWorker
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.error "failed to ask question: #{e.message}"
|
logger.info "failed to ask question: #{e.message}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,7 +11,7 @@ class ShareWorker
|
||||||
begin
|
begin
|
||||||
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.error "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}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue