From f44419de7b5bae01770cfacec2fba750512fbbbd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 26 Oct 2017 23:21:43 -0400 Subject: [PATCH] filter id server TokenValidator error logs --- src/Api/Startup.cs | 5 ----- src/Identity/Startup.cs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 0c976f89f1..24a1b7c313 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -174,11 +174,6 @@ namespace Bit.Api return true; } - if(context.Contains("IdentityServer4.Validation.TokenRequestValidator")) - { - return e.Level > LogEventLevel.Error; - } - return e.Level >= LogEventLevel.Error; }); diff --git a/src/Identity/Startup.cs b/src/Identity/Startup.cs index 2aa4c5a89b..9aaa3896fc 100644 --- a/src/Identity/Startup.cs +++ b/src/Identity/Startup.cs @@ -75,7 +75,7 @@ namespace Bit.Identity loggerFactory.AddSerilog(env, appLifetime, globalSettings, (e) => { var context = e.Properties["SourceContext"].ToString(); - if(context.Contains("IdentityServer4.Validation.TokenRequestValidator")) + if(context.Contains("IdentityServer4.Validation.TokenValidator")) { return e.Level > LogEventLevel.Error; }