1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

fixes to exception logging

This commit is contained in:
Kyle Spearrin
2019-09-04 12:54:19 -04:00
parent cf9c8d8fe9
commit 44956b3994
4 changed files with 29 additions and 2 deletions

View File

@ -22,6 +22,13 @@ namespace Bit.Events
return e.Level > LogEventLevel.Error;
}
if(e.Properties.ContainsKey("RequestPath") &&
!string.IsNullOrWhiteSpace(e.Properties["RequestPath"]?.ToString()) &&
(context.Contains(".Server.Kestrel") || context.Contains(".Core.IISHttpServer")))
{
return false;
}
return e.Level >= LogEventLevel.Error;
}))
.Build()