serilog 增加环境发生错误发送邮件
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-22 09:57:25 +08:00
parent 9b91472186
commit f6252f62c4
11 changed files with 67 additions and 48 deletions
+3 -6
View File
@@ -47,6 +47,9 @@ if (string.IsNullOrWhiteSpace(enviromentName))
}
#endregion
// Serilog
SerilogExtension.AddSerilogSetup(enviromentName);
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
EnvironmentName = enviromentName
@@ -131,8 +134,6 @@ builder.Services.AddDicomSetup();
builder.Services.AddSignalR();
//// 添加反伪造服务
//builder.Services.AddAntiforgery(options =>
//{
@@ -242,10 +243,6 @@ app.MapHealthChecks("/health");
// Serilog
SerilogExtension.AddSerilogSetup(enviromentName, app.Services);
try