From bd46349e276be099afaa01c359e61b27e1a04b49 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 28 Apr 2017 16:07:06 -0400 Subject: [PATCH] filter out identity errors from logs --- src/Api/Startup.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 611e601860..1cc9cd86cd 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -231,6 +231,11 @@ namespace Bit.Api return true; } + if(context.Contains("IdentityServer4.Validation.TokenRequestValidator")) + { + return e.Level > LogEventLevel.Error; + } + return e.Level >= LogEventLevel.Error; };