Skip to content

Commit 738b8a2

Browse files
Update BlockBots.php
Não logar WHITELISTED no slack
1 parent c7d642b commit 738b8a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Middleware/BlockBots.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ private function isWhitelisted()
140140
if (in_array($this->client->ip, $this->options->whitelist_ips)) {
141141
//Add this to the redis list as it is faster
142142
Redis::sadd($this->options->whitelist_key, $this->client->ip);
143-
ProcessLogWithIpInfo::dispatch($this->client, 'WHITELISTED', $this->options);
143+
if ($this->options->log) {
144+
ProcessLogWithIpInfo::dispatch($this->client, 'WHITELISTED', $this->options);
145+
}
144146
return true;
145147
}
146148

0 commit comments

Comments
 (0)