From 0ead7de6bf8306beb0d63991f368e6a78d8b11bd Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 15 Oct 2012 17:27:34 +0200 Subject: [PATCH] Add some debug logging to ContentHandler Change-Id: I3f728999bc0576e4d225b49b5440a7fc5617d52d --- includes/content/ContentHandler.php | 5 +++++ 1 file changed, 5 insertions(+) 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]; } -- 2.20.1