Include timestamp and database in rate limiter log (applying live patch)
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 29 May 2005 00:23:41 +0000 (00:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 29 May 2005 00:23:41 +0000 (00:23 +0000)
includes/User.php

index b1cd8f1..7d637cb 100644 (file)
@@ -439,7 +439,7 @@ class User {
                                if( $count > $max ) {
                                        wfDebug( "$fname: tripped! $key at $count $summary\n" );
                                        if( $wgRateLimitLog ) {
-                                               @error_log( $this->getName() . ": tripped $key at $count $summary\n", 3, $wgRateLimitLog );
+                                               @error_log( wfTimestamp( TS_MW ) . ' ' . $wgDBname . ': ' . $this->getName() . " tripped $key at $count $summary\n", 3, $wgRateLimitLog );
                                        }
                                        $triggered = true;
                                } else {