mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Guards structured logging with IsEnabled checks
This commit is contained in:
1 parent
ccbd653ee5
commit
2e53449ada
44 files changed
+448
-136
No files matched your search
+1
@@ -113,6 +113,7 @@ public class PublicHostValidationHandlerTests
|
||||
{
|
||||
// Arrange
|
||||
ILogger<PublicHostValidationHandler> mockLogger = Substitute.For<ILogger<PublicHostValidationHandler>>();
|
||||
mockLogger.IsEnabled(Arg.Any<LogLevel>()).Returns(true);
|
||||
StubHttpMessageHandler innerHandler = new();
|
||||
PublicHostValidationHandler handler = new(CreateValidator(), mockLogger) { InnerHandler = innerHandler };
|
||||
using HttpClient client = new(handler);
|
||||
|
||||
Reference in new issue
Block a user