From 1d5943b6e18c4f1b3a7cce5deabf98a22a0f1d79 Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 17 Nov 2021 09:45:34 -0500 Subject: [PATCH] fix(api): properly ignore exceptions that result in 400 status code --- 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 34e3a0e3..05c3a103 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -106,7 +106,7 @@ namespace PluralKit.API builder.RegisterInstance(InitUtils.BuildConfiguration(Environment.GetCommandLineArgs()).Build()) .As(); builder.RegisterModule(new ConfigModule("API")); - builder.RegisterModule(new LoggingModule("api", cfg: new LoggerConfiguration().Filter.ByExcluding(exc => exc.Exception is PKError))); + builder.RegisterModule(new LoggingModule("api", cfg: new LoggerConfiguration().Filter.ByExcluding(exc => exc.Exception.IsUserError()))); builder.RegisterModule(new MetricsModule("API")); builder.RegisterModule(); builder.RegisterModule();