1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05: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; return false;
} }
// IP blocks
if(category == typeof(IpRateLimitMiddleware).FullName && logLevel >= LogLevel.Information)
{
return true;
}
return logLevel >= LogLevel.Error; return logLevel >= LogLevel.Error;
}, },
globalSettings.Loggr.LogKey, globalSettings.Loggr.LogKey,