dotnet / dotnet/aspnetcore

Unexpected behavior in HttpLoggingMiddleware

Open
#57,242 3 comments 0 reactions 0 assignees View on GitHub
area-middleware feature-http-logging
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

https://github.com/dotnet/aspnetcore/blob/e31445e897e416b743f436b27cb81f3c87c56d27/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs#L261C27-L261C28

In the HttpLoggingMiddleware, when opting into duration, an additional entry is created. Expected behavior would be that the duration is added as a property of the response log

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.