Skip to content

Commit

Permalink
chore(plugin): add extra logs for SQS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasvdam committed Jan 15, 2025
1 parent c2937a1 commit be6b3a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/indexing/pluginaws/sqs_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func (sc *SqsClient) sendMessageBatch(batch []*sqs.SendMessageBatchRequestEntry)
sc.logger.Trace("send batch request succeeded")

if len(result.Failed) > 0 {
for _, failed := range result.Failed {
sc.logger.Error("failed to send message", "error", failed.Message, "id", failed.Id, "code", failed.Code, "senderFault", failed.SenderFault)
}
return fmt.Errorf("failed to send %d messages", len(result.Failed))
}

Expand Down

0 comments on commit be6b3a5

Please sign in to comment.