error -> info (maybe .warn?)

This commit is contained in:
Yuki 2015-07-27 12:48:10 +05:30
parent 26a517a650
commit bde8b64977
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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