diff --git a/Francesco.Recipes.World/Program.cs b/Francesco.Recipes.World/Program.cs index 1155aee..c36c4ac 100644 --- a/Francesco.Recipes.World/Program.cs +++ b/Francesco.Recipes.World/Program.cs @@ -8,14 +8,8 @@ var builder = WebApplication.CreateBuilder(args); var services = builder.Services; var configuration = builder.Configuration; -services.AddLogging( - loggingBuilder => - loggingBuilder.AddSerilog( - new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger())); - - var connectionString = builder.Configuration.GetConnectionString("FrancescosRecipesWorldDbContextConnection") - ?? throw new InvalidOperationException("Connection string 'RecruitmentToolDbContextConnection' not found."); + ?? throw new InvalidOperationException("Connection string 'FrancescosRecipesWorldDbContextConnection' not found."); services.AddDbContext(options => options.UseSqlServer(connectionString)); diff --git a/Francesco.Recipes.World/appsettings.json b/Francesco.Recipes.World/appsettings.json index 07a22b4..112aea4 100644 --- a/Francesco.Recipes.World/appsettings.json +++ b/Francesco.Recipes.World/appsettings.json @@ -9,15 +9,6 @@ "ConnectionStrings": { "FrancescosRecipesWorldDbContextConnection": "Server=localhost\\SQLEXPRESS;Database=Francesco.Recipes.World; Trusted_Connection=True; MultipleActiveResultSets=true;TrustServerCertificate=True " }, - "EmailConfiguration": { - "Server": "127.0.0.1", - "SmtpPort": 1025, - "User": "", - "Password": "", - "EnableSsl": false, - "From": "mailhog@localhost.net", - "WebUserInterface": "127.0.0.1:8025" - }, "Serilog": { "MinimumLevel": { "Default": "Debug", @@ -26,16 +17,7 @@ "Microsoft": "Information" } }, - "WriteTo": [ - { - "Name": "Sentry", - "Args": { - "Dsn": "https://84d32207fb244762a68b9d4a5de92495@sentry.intersim.ch/8", - "MinimumBreadcrumbLevel": "Debug", - "MinimumEventLevel": "Debug" - } - } - ], + "Enrich": [ "FromLogContext", "WithMachineName",