Merge "Improved rate limit log to mention IP"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 13 May 2014 19:33:19 +0000 (19:33 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 13 May 2014 19:33:19 +0000 (19:33 +0000)
includes/User.php

index 8198282..6578341 100644 (file)
@@ -1759,7 +1759,8 @@ class User {
                        // Already pinged?
                        if ( $count ) {
                                if ( $count >= $max ) {
-                                       wfDebugLog( 'ratelimit', $this->getName() . " tripped! $key at $count $summary" );
+                                       wfDebugLog( 'ratelimit', "User '{$this->getName()}' " .
+                                               "(IP {$this->getRequest()->getIP()}) tripped $key at $count $summary" );
                                        $triggered = true;
                                } else {
                                        wfDebug( __METHOD__ . ": ok. $key at $count $summary\n" );