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

Unhandled exception log #15

Open
lsgroi opened this issue Apr 9, 2018 · 1 comment
Open

Unhandled exception log #15

lsgroi opened this issue Apr 9, 2018 · 1 comment

Comments

@lsgroi
Copy link
Contributor

lsgroi commented Apr 9, 2018

As far as I understand, the library is built on top of ExceptionHandlerMiddleware by setting its exception handler.

By default the exception is logged as "unhandled exception" after which is handled by the library via ExceptionHandlerConfiguration.

This is causing a message "An unhandled exception has occurred: ..." sent to the logger. What would you suggest to avoid that behaviour?

@dharanish
Copy link

Hi @josephwoodward, Could you please suggest any workaround/fix for Unhandled exception logs logged by ExceptionHandlerMiddleware.

For ex:
2019-01-28 14:09:10.3817|ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware||An unhandled exception has occurred while executing the request. A network-related or instance-specific error occurred while establishing a connection to SQL Server.....

This is also logged when OnError logging.

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

No branches or pull requests

2 participants