Skip to content

Commit 686fff2

Browse files
author
David Shiflet
committed
Remove TraceHelper.Trace calls that emit Azure resource IDs from AzureKeyVaultHelper and AzureStorageHelper
1 parent 96085d6 commit 686fff2

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/FunctionalTest/Framework/Helpers/AzureKeyVaultHelper.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public string GetDecryptedSecret(string secretName)
7777
}
7878
if (string.IsNullOrEmpty(secret))
7979
{
80-
TraceHelper.TraceInformation("Looking for secret {0} using name {1}. Starting with environment variables.", secretName, lookupName);
8180
secret = Environment.GetEnvironmentVariable(lookupName);
8281
}
8382
if (string.IsNullOrEmpty(secret))
@@ -89,7 +88,6 @@ public string GetDecryptedSecret(string secretName)
8988
secretClient = new SecretClient(new Uri($"https://{KeyVaultName}.vault.azure.net"), credential);
9089
}
9190
var secretIdentifier = $"https://{KeyVaultName}.vault.azure.net/secrets/{lookupName}";
92-
TraceHelper.TraceInformation("Secret {0} not set as environment variable. Looking in AKV for {1}.", secretName, secretIdentifier);
9391
try
9492
{
9593
secret = secretClient.GetSecret(lookupName).Value.Value;
@@ -193,7 +191,6 @@ private static bool DetectAzureVM()
193191
/// <returns></returns>
194192
public string GetStorageAccountAccessKey(string storageAccountResourceId)
195193
{
196-
TraceHelper.TraceInformation($"Fetching storage access key for {storageAccountResourceId}");
197194
return new AzureStorageHelper(storageAccountResourceId, this).GetStorageAccountAccessKey(storageAccountResourceId);
198195
}
199196
}

src/FunctionalTest/Framework/Helpers/AzureStorageHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public Credential EnsureCredential(Management.Smo.Server server)
3838

3939
public string GetStorageAccountAccessKey(string storageAccountResourceId)
4040
{
41-
TraceHelper.TraceInformation($"Fetching storage access key for {storageAccountResourceId}");
4241
var storageAccount = ArmClient.GetStorageAccountResource(new Azure.Core.ResourceIdentifier(storageAccountResourceId));
4342
return storageAccount.GetKeys().First().Value;
4443
}

0 commit comments

Comments
 (0)