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

Exceptions when misconfigured #155

Merged
merged 8 commits into from
Jun 2, 2019
Merged

Exceptions when misconfigured #155

merged 8 commits into from
Jun 2, 2019

Conversation

mashbrno
Copy link
Contributor

@mashbrno mashbrno commented Dec 7, 2018

Part of my JSON configuration was skipped. After few hours debugging I found that it silently drops parts unable to load. Please revise my attempt to provide some meaningful Exception.

Copy link
Contributor

@skomis-mm skomis-mm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mashbrno 👍 .
It would be great if this would be a part of a bigger change (feature with strict/non strict validation behavior). For this kind of local change it would be better to just emit errors to the SelfLog instead of throwing them to align with other places and the current behavior.

Jan Zahradník and others added 4 commits January 5, 2019 20:23
@mashbrno
Copy link
Contributor Author

mashbrno commented Jan 6, 2019

I've merge latest changes from dev and replaced Expcetions with SelfLog.

Copy link
Contributor

@skomis-mm skomis-mm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tsimbalar tsimbalar mentioned this pull request Mar 25, 2019
@nblumhardt nblumhardt merged commit ad2f33e into serilog:dev Jun 2, 2019
@nblumhardt
Copy link
Member

Thanks!

@nblumhardt
Copy link
Member

(Unfortunately my trigger finger was too quick and I merged this with the original PR title "Exceptions when misconfigured" - I should have noted "Improved SelfLog messages when misconfigured" - just force-pushed the better message).

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

Successfully merging this pull request may close these issues.

3 participants