Skip to content

Commit

Permalink
Use proper serilog registration call
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 26, 2024
1 parent ba9e17a commit 6a9367a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Extensions/WebApplicationBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public static void ApplyBaseConfiguration(this WebApplicationBuilder builder, Ac
serverOptions.Limits.RequestHeadersTimeout = TimeSpan.FromMilliseconds(3000);
});

builder.Services.AddSerilog();
builder.Host.UseSerilog((context, _, config) => config.ReadFrom.Configuration(context.Configuration));
}
}

0 comments on commit 6a9367a

Please sign in to comment.