log e621 post md5 mismatch without failing

This commit is contained in:
Dylan Knutson
2023-08-26 09:55:27 -07:00
parent ebfea0ab7c
commit 7ee7b57965

View File

@@ -73,7 +73,11 @@ module Domain::E621::Job
e621_md5 = post_json["file"]["md5"]
if post.md5 && post.md5 != e621_md5
fatal_error("md5 mismatch for post")
logger.error(
"[ id: #{post.id} / e621_id: #{post.e621_id} ] " +
"md5 mismatch for post: #{post.md5} != #{e621_md5}"
)
return false
else
post.md5 = e621_md5
end