feat(serilog): support restrictedToMinimumLevel when configuring Serilog in code #5181
@sentry/warden / warden: find-bugs
completed
May 4, 2026 in 53s
1 issue
find-bugs: Found 1 issue (1 low)
Low
Sentry_WithRestrictedToMinimumLevel_FiltersLogsBelow asserts nothing about filtering behavior - `test/Sentry.Serilog.Tests/SentrySerilogSinkExtensionsTests.cs:128-144`
The test name claims to verify that logs below the restricted level are filtered before reaching the sink, but the test body contains no assertions verifying this. It only calls logger.Warning and logger.Error without capturing or inspecting which events actually reached the Sentry sink. As a result, the test will pass even if filtering is broken, providing false confidence that the new restrictedToMinimumLevel parameter works correctly.
Duration: 51.7s · Tokens: 165.5k in / 1.3k out · Cost: $1.03
Loading