Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cammj committed May 10, 2024
1 parent 94ee4ba commit 596017d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private static async Task BatchQueueProcess(ConcurrentQueue<TableTransactionActi
{
List<TableTransactionAction> failedBatch = BatchTransactions.ToList();

_log.LogError($"Failed to insert batch transaction in {tableClient.Name} with partition key {failedBatch[e.FailedTransactionActionIndex.Value].Entity.PartitionKey} row key {failedBatch[e.FailedTransactionActionIndex.Value].Entity.RowKey}");
_log.LogError($"Failed to insert batch transaction in {tableClient.Name} with partition key {failedBatch[e.FailedTransactionActionIndex.Value].Entity.PartitionKey} row key {failedBatch[e.FailedTransactionActionIndex.Value].Entity.RowKey} {e.Message}");

// Remove the failing item from the batch and requeue rest
failedBatch.RemoveAt(e.FailedTransactionActionIndex.Value);
Expand Down

0 comments on commit 596017d

Please sign in to comment.