Make profiling to UDP work again
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Mon, 14 Apr 2014 18:44:18 +0000 (20:44 +0200)
committerOri.livneh <ori@wikimedia.org>
Tue, 15 Apr 2014 00:33:36 +0000 (00:33 +0000)
Fix for I1260bab2b5 (afa6af0).

Since $this->mCollated['-total'] is normally always defined,
this would cause no logging to UDP at all.

Change-Id: Ibce1c8662b4b3e99e77723f5377dd654b4f59be1

includes/profiler/ProfilerSimpleUDP.php

index e9bcff6..dfe923d 100644 (file)
@@ -41,11 +41,6 @@ class ProfilerSimpleUDP extends Profiler {
 
                $this->close();
 
-               if ( isset( $this->mCollated['-total'] ) ) {
-                       # Less than minimum, ignore
-                       return;
-               }
-
                if ( !function_exists( 'socket_create' ) ) {
                        # Sockets are not enabled
                        return;