Skip to content

Commit

Permalink
Debug blob not found exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-tykhonchuk committed Jan 11, 2024
1 parent 0770aa9 commit 0d11e24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AzureBatchQueue/MessageQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ async Task<QueueMessage<T>> ToQueueMessage(QueueMessage m, CancellationToken ct)
}
catch (RequestFailedException ex) when (ex.Status == 404)
{
logger.LogError(ex, "Blob with name {blobRef!.BlobName} is not found for {messageId}", blobRef!.BlobName, m.MessageId);
logger.LogError(ex, "Blob with name {BlobName} is not found for {MessageId}", blobRef!.BlobName, m.MessageId);
throw;
}
catch (Exception ex)
{
logger.LogError(ex, "Exception when loading blob {BlobName} for {MessageId}", blobRef!.BlobName, m.MessageId);
throw;
}
}
Expand Down

0 comments on commit 0d11e24

Please sign in to comment.