dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2e50b89
)
Merge "Improved rate limit log to mention IP"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 13 May 2014 19:33:19 +0000
(19:33 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 13 May 2014 19:33:19 +0000
(19:33 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
8198282
..
6578341
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-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" );