The Wayback Machine - https://web.archive.org/web/20220201125709/https://github.com/dotnet/aspnetcore/issues/39907
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why BadHttpRequest is logged twice (as INFO and ERROR) #39907

Open
1 task done
regisoft opened this issue Feb 1, 2022 · 0 comments
Open
1 task done

Why BadHttpRequest is logged twice (as INFO and ERROR) #39907

regisoft opened this issue Feb 1, 2022 · 0 comments

Comments

@regisoft
Copy link

@regisoft regisoft commented Feb 1, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

On IIS a BadHttpRequest is logged twice (as INFO and ERROR)

Expected Behavior

No INFO Log-Entry. Only 1 Log Entry with severity ERROR.

Steps To Reproduce

When run https://github.com/regisoft/http400log on IIS (with Launch profile "IIS Express"), then the exception is logged twice with the Category Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer. First with Severity=INFO, second as ERROR.

My question is: Why it's logged as INFO?

When starting the same programm on Kestrel, (with Launch profile "WebApplication1") There it works correctly: Only 1 Log entry with Category: Microsoft.AspNetCore.Server.Kestrel and Severity=ERROR... No INFO Logentry.

Exceptions (if any)

No response

.NET Version

6.0

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant