Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed Aug 8, 2024
1 parent 65125f0 commit e806738
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using Yubico.YubiKey.Otp;
using Yubico.YubiKey.Piv;
using Yubico.YubiKey.TestUtilities;
using Log = Yubico.Core.Logging.Log;

namespace Yubico.YubiKey
{
Expand All @@ -46,16 +45,16 @@ public void SwitchingBetweenTransports_ForcesThreeSecondWait()
// Force the old behavior even for newer YubiKeys.
AppContext.SetSwitch(YubiKeyCompatSwitches.UseOldReclaimTimeoutBehavior, true);

using Logger? log = new LoggerConfiguration()
.Enrich.With(new ThreadIdEnricher())
.WriteTo.Console(
outputTemplate: "{Timestamp:HH:mm:ss.fffffff} [{Level}] ({ThreadId}) {Message}{NewLine}{Exception}")
.CreateLogger();

Log.CustomLoggerFactory = LoggerFactory.Create(
builder => builder
.AddSerilog(log)
.AddFilter(level => level >= LogLevel.Information));
// using Logger? log = new LoggerConfiguration() TODO Investigate if needed
// .Enrich.With(new ThreadIdEnricher())
// .WriteTo.Console(
// outputTemplate: "{Timestamp:HH:mm:ss.fffffff} [{Level}] ({ThreadId}) {Message}{NewLine}{Exception}")
// .CreateLogger();
//
// Log.CustomLoggerFactory = LoggerFactory.Create(
// builder => builder
// .AddSerilog(log)
// .AddFilter(level => level >= LogLevel.Information));

// TEST ASSUMPTION: This test requires FIDO. On Windows, that means this test case must run elevated (admin).
IYubiKeyDevice testDevice = IntegrationTestDeviceEnumeration.GetTestDevice();
Expand Down

0 comments on commit e806738

Please sign in to comment.