Skip to content

Commit a74cf62

Browse files
committed
remoived the logs
1 parent 080edc0 commit a74cf62

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Middleware/AbuseIp.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ class AbuseIp
1010
{
1111
public function handle(Request $request, Closure $next)
1212
{
13-
$abuseip = config('abuseip.spam_ips');
13+
$abuseip = config('abuseip.abuse_ips');
1414

15-
Log::info('Request IP: ' . $request->ip());
16-
Log::info('Spam IPs: ', $abuseip);
1715
if (in_array($request->ip(), $abuseip)) {
1816

19-
Log::info('Blocking IP: ' . $request->ip());
17+
// Log::info('Blocking IP: ' . $request->ip());
2018
return response('Your IP address has been blocked', 403);
2119
}
2220

0 commit comments

Comments
 (0)