fix: Log twillio attachment error (#8703)

This commit is contained in:
Muhsin Keloth
2024-01-15 12:46:58 +05:30
committed by GitHub
parent 10076c6a3e
commit 7d6085cefd

View File

@@ -139,7 +139,7 @@ class Twilio::IncomingMessageService
# This is just a temporary workaround since some users have not yet enabled media protection. We will remove this in the future.
def handle_download_attachment_error(error)
logger.info "Error downloading attachment from Twilio: #{error.message}"
Rails.logger.info "Error downloading attachment from Twilio: #{error.message}"
if error.message.include?('401 Unauthorized')
Down.download(params[:MediaUrl0])
else