Skip to content

Commit ecf440c

Browse files
committed
add better warning log example
1 parent 8855f48 commit ecf440c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/azure-app-configuration/enable-dynamic-configuration-aspnet-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ Logs are output upon configuration refresh and contain detailed information on k
260260
Setting updated. Key:'ExampleKey'
261261

262262
warn: Microsoft.Extensions.Configuration.AzureAppConfiguration.Refresh[0]
263-
A refresh operation failed.
264-
Service request failed.
263+
A refresh operation failed while resolving a Key Vault reference.
264+
Key vault error. ErrorCode:'SecretNotFound' Key:'ExampleKey' Label:'ExampleLabel' Etag:'6LaqgBQM9C_Do2XyZa2gAIfj_ArpT52-xWwDSLb2hDo' SecretIdentifier:'https://examplevault.vault.azure.net/secrets/ExampleSecret'
265265
```
266266

267267
Using `ILogger` is the preferred method in ASP.NET applications and is prioritized as the logging source if an instance of `ILoggerFactory` is present. However, if `ILoggerFactory` is not available, logs can alternatively be enabled and configured through the [instructions for .NET Core apps](./enable-dynamic-configuration-dotnet-core.md#logging-and-monitoring-v600-and-later). For more information, see [logging in .NET Core and ASP.NET Core](/aspnet/core/fundamentals/logging).

articles/azure-app-configuration/enable-dynamic-configuration-dotnet-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ Logs are output upon configuration refresh and contain detailed information on k
171171
Setting updated. Key:'ExampleKey'
172172

173173
[Warning] Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh:
174-
A refresh operation failed.
175-
Service request failed.
174+
A refresh operation failed while resolving a Key Vault reference.
175+
Key vault error. ErrorCode:'SecretNotFound' Key:'ExampleKey' Label:'ExampleLabel' Etag:'6LaqgBQM9C_Do2XyZa2gAIfj_ArpT52-xWwDSLb2hDo' SecretIdentifier:'https://examplevault.vault.azure.net/secrets/ExampleSecret'
176176
```
177177

178178
> [!NOTE]

0 commit comments

Comments
 (0)