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
3227122ac3
commit
766cf99f21
|
@ -266,7 +266,6 @@ class BlacklistPlugin extends Plugin
|
||||||
private function _checkUrl($url)
|
private function _checkUrl($url)
|
||||||
{
|
{
|
||||||
foreach ($this->_urlPatterns as $pattern) {
|
foreach ($this->_urlPatterns as $pattern) {
|
||||||
common_debug("Checking $url against $pattern");
|
|
||||||
if (preg_match("/$pattern/", $url)) {
|
if (preg_match("/$pattern/", $url)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -288,7 +287,6 @@ class BlacklistPlugin extends Plugin
|
||||||
private function _checkNickname($nickname)
|
private function _checkNickname($nickname)
|
||||||
{
|
{
|
||||||
foreach ($this->_nicknamePatterns as $pattern) {
|
foreach ($this->_nicknamePatterns as $pattern) {
|
||||||
common_debug("Checking $nickname against $pattern");
|
|
||||||
if (preg_match("/$pattern/", $nickname)) {
|
if (preg_match("/$pattern/", $nickname)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user