diff --git a/src/AzureEventGridSimulator.Tests/ActualSimulatorTests/ActualSimulatorFixture.cs b/src/AzureEventGridSimulator.Tests/ActualSimulatorTests/ActualSimulatorFixture.cs index 27cef87..1ae4920 100644 --- a/src/AzureEventGridSimulator.Tests/ActualSimulatorTests/ActualSimulatorFixture.cs +++ b/src/AzureEventGridSimulator.Tests/ActualSimulatorTests/ActualSimulatorFixture.cs @@ -3,7 +3,6 @@ using System.Diagnostics; using System.IO; using System.Linq; -using System.Reflection; using System.Threading.Tasks; using Xunit; diff --git a/src/AzureEventGridSimulator/Program.cs b/src/AzureEventGridSimulator/Program.cs index 13e2636..b67a8a4 100644 --- a/src/AzureEventGridSimulator/Program.cs +++ b/src/AzureEventGridSimulator/Program.cs @@ -206,13 +206,14 @@ private static WebApplicationBuilder ConfigureWebHost(string[] args, IConfigurat .MinimumLevel.Override("Microsoft", LogEventLevel.Error) .MinimumLevel.Override("System", LogEventLevel.Error) // Override defaults from settings if any - .ReadFrom.Configuration(context.Configuration, "Serilog") + .ReadFrom.Configuration(context.Configuration) .WriteTo.Conditional(_ => !hasAtLeastOneLogSinkBeenConfigured, sinkConfiguration => sinkConfiguration.Console()); }); builder.Configuration.AddConfiguration(configuration); builder.WebHost.UseKestrel(options => { + // ReSharper disable once TemplateIsNotCompileTimeConstantProblem Log.Verbose(((IConfigurationRoot)configuration).GetDebugView().Normalize()); options.ConfigureSimulatorCertificate();