1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

filter id server TokenValidator error logs

This commit is contained in:
Kyle Spearrin 2017-10-26 23:21:43 -04:00
parent 956b1da425
commit f44419de7b
2 changed files with 1 additions and 6 deletions

View File

@ -174,11 +174,6 @@ namespace Bit.Api
return true; return true;
} }
if(context.Contains("IdentityServer4.Validation.TokenRequestValidator"))
{
return e.Level > LogEventLevel.Error;
}
return e.Level >= LogEventLevel.Error; return e.Level >= LogEventLevel.Error;
}); });

View File

@ -75,7 +75,7 @@ namespace Bit.Identity
loggerFactory.AddSerilog(env, appLifetime, globalSettings, (e) => loggerFactory.AddSerilog(env, appLifetime, globalSettings, (e) =>
{ {
var context = e.Properties["SourceContext"].ToString(); var context = e.Properties["SourceContext"].ToString();
if(context.Contains("IdentityServer4.Validation.TokenRequestValidator")) if(context.Contains("IdentityServer4.Validation.TokenValidator"))
{ {
return e.Level > LogEventLevel.Error; return e.Level > LogEventLevel.Error;
} }