-
Notifications
You must be signed in to change notification settings - Fork 39
Don't log errors when client aborts the connection #110
Comments
+1 |
Warning? |
Debug |
For reference, this catch statement and logger are at the root of the request processing call-stack. You end up here if anything goes wrong during a request. At this point we will rarely know the cause of the exception. Are you recommending we suppress logging all exceptions if we think the client has disconnected? That's why I recommended Warning. |
The stack trace is a little different now that WebListener has some buffering enabled by default:
The error now commonly happens after app code when flushing the buffer. It will be easier to de-emphasize errors in this scenario. |
Related: #173. If we suppress throwing write errors then we don't have to worry as much about logging them when caught later. |
All the work in this repo has been completed. We'll work on StaticFiles separately. |
Currently when you run the web command for the default ASP.NET 5 Web Site template you see errors whenever the client aborts the connection (ex you cancel the browser request). Clients aborting the connection is really an expected behavior and should not be logged as a server error.
Repro steps:
The text was updated successfully, but these errors were encountered: