diff --git a/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs b/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs index 476fed3ec4ce..3ca65153a371 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs @@ -107,7 +107,7 @@ private async Task InvokeInternal(HttpContext context, HttpLoggingOptions option loggingFields = logContext.LoggingFields; var request = context.Request; - if (logContext.IsAnyEnabled(HttpLoggingFields.RequestPropertiesAndHeaders)) + if (logContext.IsAnyEnabled(HttpLoggingFields.RequestPropertiesAndHeaders | HttpLoggingFields.RequestQuery)) { if (loggingFields.HasFlag(HttpLoggingFields.RequestProtocol)) {