Why don't we just use a ctor in HttpExceptionMiddleware? #63
Unanswered
VictorioBerra
asked this question in
Q&A
Replies: 1 comment
-
I have no idea why I did that..... Now that I think about it though. The exception case is rare, so by not using the constructor, we only create a logger in the rare case that an exception is thrown. So it works out in the end. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Framework/Source/Boxed.AspNetCore/Middleware/HttpExceptionMiddleware.cs
Line 20 in b2a0638
Beta Was this translation helpful? Give feedback.
All reactions