Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pm7y committed Oct 17, 2023
1 parent 1565591 commit 790927d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Xunit;

Expand Down
3 changes: 2 additions & 1 deletion src/AzureEventGridSimulator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 790927d

Please sign in to comment.