fix(api): re-ignore PKErrors in Serilog
This commit is contained in:
parent
b9252ec615
commit
e85073665e
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user