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

Prefer "MinimumLevel:Default" value if "MinimumLevel" value returns empty string #413

Conversation

DavidAllardyce
Copy link
Contributor

Use value from Serilog:MinimumLevel:Default if value from Serilog:MinimumLevel is an empty string.

Fixes #332

…xtensionsTests.cs

Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
@nblumhardt
Copy link
Member

Thanks for this @DavidAllardyce, sorry about the slow turnaround. I'd guess there are other places where this kind of behavior might affect us, which is a bit worrying, but the fix for this case looks contained/low-risk so let's get it into 8.0.3 👍

@nblumhardt nblumhardt merged commit 9d920b7 into serilog:dev Oct 8, 2024
1 check passed
@nblumhardt nblumhardt mentioned this pull request Oct 8, 2024
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.

Aspnetcore 7 WebApplicationFactory doesn't get default minimum configuration correctly
3 participants