Improve error handling for empty text extraction [SCI-10734]

This commit is contained in:
Andrej 2024-05-27 18:03:14 +02:00
parent 4471ad40dc
commit c5aaf46672

View file

@ -58,6 +58,8 @@ module ActiveStorage
asset.update_estimated_size
Rails.logger.info "Asset #{asset.id}: file text successfully extracted"
rescue ActiveRecord::RecordInvalid => e
Rails.logger.error "Asset #{asset.id}: file text unsuccessfully extracted with error #{e.message}"
end
{ text_extracted: true }