Also log if we overrode the failure notice due to non-zero-size output file
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 26 May 2006 01:38:21 +0000 (01:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 26 May 2006 01:38:21 +0000 (01:38 +0000)
includes/Image.php

index fd2ce63..0f2251c 100644 (file)
@@ -1169,6 +1169,9 @@ class Image
                                unlink( $thumbPath );
                        } else {
                                // All good
+                               wfDebugLog( 'thumbnail',
+                                       sprintf( 'thumbnail maybe failed on %s, non-empty output kept: "%s" from "%s"',
+                                               wfHostname(), trim($err), $cmd ) );
                                $err = true;
                        }
                }