From 38ee251f729b7f5899004637d24a144bea8d5a0b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 29 Nov 2017 08:47:20 -0500 Subject: [PATCH] more info on bans/blocks --- src/Core/Utilities/CustomIpRateLimitMiddleware.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Utilities/CustomIpRateLimitMiddleware.cs b/src/Core/Utilities/CustomIpRateLimitMiddleware.cs index 115823d101..7314845dd7 100644 --- a/src/Core/Utilities/CustomIpRateLimitMiddleware.cs +++ b/src/Core/Utilities/CustomIpRateLimitMiddleware.cs @@ -60,10 +60,11 @@ namespace Bit.Core.Utilities if(blockedCount > 10) { _blockIpService.BlockIpAsync(identity.ClientIp, false); - _logger.LogInformation($"Blocked {identity.ClientIp}. Request Info: {GetRequestInfo(httpContext)}"); + _logger.LogInformation($"Banned {identity.ClientIp}. Info: {GetRequestInfo(httpContext)}"); } else { + _logger.LogInformation($"Request blocked {identity.ClientIp}. Info: {GetRequestInfo(httpContext)}"); _memoryCache.Set(key, blockedCount, new MemoryCacheEntryOptions().SetSlidingExpiration(new TimeSpan(0, 5, 0))); }