From: daniel Date: Mon, 15 Oct 2012 15:27:34 +0000 (+0200) Subject: Add some debug logging to ContentHandler X-Git-Tag: 1.31.0-rc.0~21947 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=0ead7de6bf8306beb0d63991f368e6a78d8b11bd;p=lhc%2Fweb%2Fwiklou.git Add some debug logging to ContentHandler Change-Id: I3f728999bc0576e4d225b49b5440a7fc5617d52d --- diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 3b3f990777..33c803eed2 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -97,6 +97,8 @@ abstract class ContentHandler { return $content->getNativeData(); } + wfDebugLog( 'ContentHandler', 'Accessing ' . $content->getModel() . ' content as text!' ); + if ( $wgContentHandlerTextFallback == 'fail' ) { throw new MWException( "Attempt to get text from Content with model " . @@ -337,6 +339,9 @@ abstract class ContentHandler { } } + wfDebugLog( 'ContentHandler', 'Created handler for ' . $modelId + . ': ' . get_class( $handler ) ); + ContentHandler::$handlers[$modelId] = $handler; return ContentHandler::$handlers[$modelId]; }