Skip to content

Commit

Permalink
Fix Serilog strange bug: serilog/serilog-aspnetcore#289 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodion-m committed Apr 13, 2023
1 parent f1de4f1 commit 7ac2660
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/OnlineStore.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
using Serilog;
using Serilog.Events;


Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.CreateBootstrapLogger();
.CreateLogger();

Log.Information("Starting up");
try
{
Expand Down Expand Up @@ -109,7 +109,6 @@
});
builder.Services.AddAuthorization();


const string dbPath = "myapp.db";
builder.Services.AddDbContext<AppDbContext>(
options => options.UseSqlite($"Data Source={dbPath}"));
Expand Down

0 comments on commit 7ac2660

Please sign in to comment.