Skip to content

Commit

Permalink
fix: Log twillio attachment error (#8703)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhsin-k committed Jan 15, 2024
1 parent 10076c6 commit 7d6085c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/twilio/incoming_message_service.rb
Expand Up @@ -139,7 +139,7 @@ def download_with_auth

# 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
Expand Down

0 comments on commit 7d6085c

Please sign in to comment.