Drop debug statements on every regex match from Blacklist plugin; filling the logs a little faster than ops likes. :)
This commit is contained in:
parent
c6c4510192
commit
c905d7e9a0
@ -266,7 +266,6 @@ class BlacklistPlugin extends Plugin
|
||||
private function _checkUrl($url)
|
||||
{
|
||||
foreach ($this->_urlPatterns as $pattern) {
|
||||
common_debug("Checking $url against $pattern");
|
||||
if (preg_match("/$pattern/", $url)) {
|
||||
return false;
|
||||
}
|
||||
@ -288,7 +287,6 @@ class BlacklistPlugin extends Plugin
|
||||
private function _checkNickname($nickname)
|
||||
{
|
||||
foreach ($this->_nicknamePatterns as $pattern) {
|
||||
common_debug("Checking $nickname against $pattern");
|
||||
if (preg_match("/$pattern/", $nickname)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user