Made StashEdit log a bit less verbose
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 14 Dec 2014 00:46:48 +0000 (16:46 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 14 Dec 2014 00:46:48 +0000 (16:46 -0800)
Change-Id: Ib1272862efa5518854533af8bf28df97f37f350e

includes/api/ApiStashEdit.php

index 2f9f37e..938f6c0 100644 (file)
@@ -239,7 +239,9 @@ class ApiStashEdit extends ApiBase {
                                $wgMemc->unlock( $key );
                        }
                        $sec = microtime( true ) - $start;
-                       wfDebugLog( 'StashEdit', "Waited $sec seconds on '$key'." );
+                       if ( $sec > .01 ) {
+                               wfDebugLog( 'StashEdit', "Waited $sec seconds on '$key'." );
+                       }
                }
 
                if ( !is_object( $editInfo ) || !$editInfo->output ) {