Log message if `ShareWorker` tries to post something deleted
This commit is contained in:
parent
58a5065e52
commit
9c599db3a7
|
@ -12,6 +12,7 @@ class ShareWorker
|
||||||
|
|
||||||
user_service.post(Answer.find(answer_id))
|
user_service.post(Answer.find(answer_id))
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
|
logger.info "Tried to post answer ##{answer_id} for user ##{user_id} to #{service.titleize} but the user/answer/service did not exist (likely deleted), will not retry."
|
||||||
# The question to be posted was deleted
|
# The question to be posted was deleted
|
||||||
return
|
return
|
||||||
rescue Twitter::Error::DuplicateStatus
|
rescue Twitter::Error::DuplicateStatus
|
||||||
|
|
Loading…
Reference in New Issue