From e116b2ee03b4851a9063d4acbbbcacc1d41f19d5 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Tue, 13 Aug 2024 21:04:33 +0200 Subject: [PATCH] Revert change --- .../tests/integration/Yubico/YubiKey/ReclaimTimeoutTests.cs | 2 +- Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/ReclaimTimeoutTests.cs b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/ReclaimTimeoutTests.cs index 6aca5611..6240e52f 100644 --- a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/ReclaimTimeoutTests.cs +++ b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/ReclaimTimeoutTests.cs @@ -47,7 +47,7 @@ public void SwitchingBetweenTransports_ForcesThreeSecondWait() // Force the old behavior even for newer YubiKeys. AppContext.SetSwitch(YubiKeyCompatSwitches.UseOldReclaimTimeoutBehavior, true); - Logger log = new LoggerConfiguration() + using Logger? log = new LoggerConfiguration() .Enrich.With(new ThreadIdEnricher()) .WriteTo.Console( outputTemplate: "{Timestamp:HH:mm:ss.fffffff} [{Level}] ({ThreadId}) {Message}{NewLine}{Exception}") diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs index 374a7a68..96c580b7 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs @@ -40,7 +40,7 @@ public EventManagerPlugin(IOutput output) : base(output) { } public override bool Execute() { - Logger log = new LoggerConfiguration() + using Logger? log = new LoggerConfiguration() .Enrich.With(new ThreadIdEnricher()) .WriteTo.Console( outputTemplate: "[{Level}] ({ThreadId}) {Message}{NewLine}{Exception}")