From e85073665e088523c26825a5f1027761d3b1d8b9 Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 28 Nov 2021 18:28:10 -0500 Subject: [PATCH] fix(api): re-ignore PKErrors in Serilog --- PluralKit.API/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.API/Startup.cs b/PluralKit.API/Startup.cs index e12c79fc..918f723e 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -103,7 +103,7 @@ public class Startup .As(); builder.RegisterModule(new ConfigModule("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(); builder.RegisterModule();