1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Log when requests are blocked

This commit is contained in:
Kyle Spearrin 2016-12-03 00:04:51 -05:00
parent 13a51e907b
commit b03e323e78

View File

@ -182,6 +182,12 @@ namespace Bit.Api
return false;
}
// IP blocks
if(category == typeof(IpRateLimitMiddleware).FullName && logLevel >= LogLevel.Information)
{
return true;
}
return logLevel >= LogLevel.Error;
},
globalSettings.Loggr.LogKey,