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();