Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

Commit 7d792d8

Browse files
committed
Fixed typo in the environment variable 'WebsiteInstanceId', and changed comments.
1 parent e8eb00c commit 7d792d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Sitecore.Azure.Diagnostics/App_Config/Include/Sitecore.Azure.Diagnostics.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
5454
blobUri - The URI of the blob that is addressable using the following URL format:
5555
- Local Environment: http://<storage account>.blob.core.windows.net/<container>/<blob>
56-
- Role Environment: http://<storage account>.blob.core.windows.net/<container>/<DeploymentId>/<RoleInstanceId>/<blob>
56+
- Role Environment: http://<storage account>.blob.core.windows.net/<container>/<WebsiteName>/<WebsiteInstanceId>/<blob>
5757
5858
bufferSize - The size of the local buffer where logging events are collected before logging them.
5959
- When the buffer's size is reached, oldest events are deleted as new events are added to the buffer.

src/Sitecore.Azure.Diagnostics/Storage/AzureBlobStorageProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class AzureBlobStorageProvider : ProviderBase
3737
/// <summary>
3838
/// The web apps environment variables that contains the VM's id where the site is running on.
3939
/// </summary>
40-
private const string WebsiteInstanceIdEnvVar = "WEBSITE_INSTANCE_ID ";
40+
private const string WebsiteInstanceIdEnvVar = "WEBSITE_INSTANCE_ID";
4141

4242
/// <summary>
4343
/// The cloud BLOB client.
@@ -251,7 +251,7 @@ public virtual ICloudBlob CreateBlob(string blobName)
251251

252252
string webRoleRelativeAddress = this.GetWebsiteRelativeAddress();
253253

254-
// Build blob name for a Role Environment using the following format: {DeploymentId}/{RoleInstanceId}/{BlobName}.
254+
// Build blob name for a Role Environment using the following format: {WebsiteName}/{WebsiteInstanceId}/{BlobName}.
255255
blobName = string.IsNullOrEmpty(webRoleRelativeAddress) ? blobName : $"{webRoleRelativeAddress}/{blobName}";
256256

257257
var blob = this.CloudBlobContainer.Exists() ?
@@ -356,7 +356,7 @@ public virtual ICollection<ICloudBlob> ListBlobs(CloudBlobContainer container, s
356356
/// Gets the WebRole relative address.
357357
/// </summary>
358358
/// <returns>
359-
/// The WebRole address that includes {DeploymentId}/{RoleInstanceId}.
359+
/// The WebRole address that includes {WebsiteName}/{WebsiteInstanceId}.
360360
/// </returns>
361361
protected virtual string GetWebsiteRelativeAddress()
362362
{

0 commit comments

Comments
 (0)