Remove a wfDebug() from File::transform()
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 10 May 2016 05:42:07 +0000 (22:42 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 10 May 2016 05:42:07 +0000 (22:42 -0700)
This is uses a fair amount of time according to flamegraphs.

Change-Id: Iff31fb942b9589f91ec7c0501a248e63bc643d8c

includes/filerepo/file/File.php

index c037516..8175b58 100644 (file)
@@ -1065,7 +1065,6 @@ abstract class File implements IDBAccessObject {
                        if ( $this->repo ) {
                                // Defer rendering if a 404 handler is set up...
                                if ( $this->repo->canTransformVia404() && !( $flags & self::RENDER_NOW ) ) {
-                                       wfDebug( __METHOD__ . " transformation deferred.\n" );
                                        // XXX: Pass in the storage path even though we are not rendering anything
                                        // and the path is supposed to be an FS path. This is due to getScalerType()
                                        // getting called on the path and clobbering $thumb->getUrl() if it's false.