$this->logger->info('IP address blocked because it reached the maximum failed attempts in the last 30 minutes [action: {action}, attempts: {attempts}, ip: {ip}]',[
'action'=>$action,
'ip'=>$ip,
'attempts'=>$attempts,
]);
// If the ip made too many attempts within the last 30 mins we don't execute anymore
thrownewMaxDelayReached('Reached maximum delay');
}
if($delay>100){
$this->logger->info('IP address throttled because it reached the attempts limit in the last 30 minutes [action: {action}, delay: {delay}, ip: {ip}]',[
$attempts=$this->getAttempts($ip,$action);
if($attempts>10){
$this->logger->info('IP address throttled because it reached the attempts limit in the last 12 hours [action: {action}, attempts: {attempts}, ip: {ip}]',[