Skip to content

Commit 7681f37

Browse files
authored
Switching log from debug to warning (#471)
* Switching log from debug to warning * Adjusted warning logs
1 parent b5e3a4f commit 7681f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.FeatureManagement.AspNetCore/TargetingHttpContextMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public async Task InvokeAsync(HttpContext httpContext, ITargetingContextAccessor
5757

5858
if (activityFeature == null)
5959
{
60-
_logger.LogDebug("The IHttpActivityFeature from the IFeatureCollection was null");
60+
_logger.LogWarning("A request feature required for telemetry, IHttpActivityFeature, was not found in the request's feature collection. Removing this feature from the request's feature collection will cause telemetry emission to fail.");
6161
}
6262
else if (activityFeature.Activity == null)
6363
{
64-
_logger.LogDebug("The Activity on the IHttpActivityFeature was null");
64+
_logger.LogWarning("A request feature required for telemetry, IHttpActivityFeature, has a null Activity property. If you have updated IHttpActivityFeature, ensure the Activity property is not null. A missing Activity will result in telemetry emission failures.");
6565
}
6666
else
6767
{

0 commit comments

Comments
 (0)