Skip to content

Commit 5f379a8

Browse files
karshinlinpragnagopa
authored andcommitted
Removing noisy log for failure to get blob container (#7363)
* Removing noisy log for failure to get blob container
1 parent 3ee5f6c commit 5f379a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/WebJobs.Script/StorageProvider/AzureStorageProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public virtual BlobContainerClient GetBlobContainerClient()
6464

6565
if (!TryGetBlobServiceClientFromConnection(out BlobServiceClient blobServiceClient, ConnectionStringNames.Storage))
6666
{
67-
var ex = new InvalidOperationException($"Could not create BlobServiceClient to obtain the BlobContainerClient using Connection: {ConnectionStringNames.Storage}");
68-
_logger.LogError(ex, "Invalid blob storage connection configuration. Could not create BlobServiceClient.");
69-
throw ex;
67+
throw new InvalidOperationException($"Could not create BlobServiceClient to obtain the BlobContainerClient using Connection: {ConnectionStringNames.Storage}");
7068
}
7169

7270
return blobServiceClient.GetBlobContainerClient(ScriptConstants.AzureWebJobsHostsContainerName);

0 commit comments

Comments
 (0)