fix(api): re-ignore PKErrors in Serilog

This commit is contained in:
spiral 2021-11-28 18:28:10 -05:00
parent b9252ec615
commit e85073665e
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -103,7 +103,7 @@ public class Startup
.As<IConfiguration>(); .As<IConfiguration>();
builder.RegisterModule(new ConfigModule<ApiConfig>("API")); builder.RegisterModule(new ConfigModule<ApiConfig>("API"));
builder.RegisterModule(new LoggingModule("api", builder.RegisterModule(new LoggingModule("api",
cfg: new LoggerConfiguration().Filter.ByExcluding(exc => exc.Exception.IsUserError()))); cfg: new LoggerConfiguration().Filter.ByExcluding(exc => exc.Exception is PKError || exc.Exception.IsUserError())));
builder.RegisterModule(new MetricsModule("API")); builder.RegisterModule(new MetricsModule("API"));
builder.RegisterModule<DataStoreModule>(); builder.RegisterModule<DataStoreModule>();
builder.RegisterModule<APIModule>(); builder.RegisterModule<APIModule>();