mirror of
https://github.com/bitwarden/server.git
synced 2025-02-01 23:31:41 +01:00
filter TokenRequestValidator from identity
This commit is contained in:
parent
975be508eb
commit
59820678fa
@ -59,7 +59,16 @@ namespace Bit.Identity
|
||||
GlobalSettings globalSettings)
|
||||
{
|
||||
loggerFactory
|
||||
.AddSerilog(env, appLifetime, globalSettings, (e) => e.Level >= LogEventLevel.Error)
|
||||
.AddSerilog(env, appLifetime, globalSettings, (e) =>
|
||||
{
|
||||
var context = e.Properties["SourceContext"].ToString();
|
||||
if(context.Contains("IdentityServer4.Validation.TokenRequestValidator"))
|
||||
{
|
||||
return e.Level > LogEventLevel.Error;
|
||||
}
|
||||
|
||||
return e.Level >= LogEventLevel.Error;
|
||||
})
|
||||
.AddConsole()
|
||||
.AddDebug();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user