Send rate limits to main captcha log

Log exceeding the badcaptcha rate limit to the main captcha log (e.g.,
captcha.log on the WMF cluster).

So that we can measure the impact of things like
https://gerrit.wikimedia.org/r/#/c/195886/

Change-Id: I2af26d23b9343e90db2f01f099c1292914bd7ac3
This commit is contained in:
csteipp 2015-07-27 13:16:18 -07:00
parent f0b97ad19c
commit abb9c02d8c

View file

@ -766,7 +766,7 @@ class SimpleCaptcha {
// don't increase pingLimiter here, just check, if CAPTCHA limit exceeded
if ( $wgUser->pingLimiter( 'badcaptcha', 0 ) ) {
// for debugging add an proper error message, the user just see an false captcha error message
wfDebug( 'ConfirmEdit: User reached RateLimit, preventing action.' );
$this->log( 'User reached RateLimit, preventing action.' );
return false;
}