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

WebJobs handler logs handled exceptions that are written to the trace writer #349

Open
xt0rted opened this issue Jul 28, 2017 · 0 comments

Comments

@xt0rted
Copy link

xt0rted commented Jul 28, 2017

I have a try/catch and in the catch I'm calling _trace.Error($"Error loading user '{emailAddress}'", ex) so the exception is shown as such in the console while debugging. Because of how the webjobs extension pulls out errors to send this is triggering handled exceptions to be logged as if they were unhandled.

I don't think this is a bug but rather something that just catches you off guard when you run across it.

In v3 of the webjobs sdk logging is a first class feature now of which Application Insights has an out of the box implementation. I haven't had a chance to look through this though to see how exceptions are being dealt with.

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

1 participant