From: Tim Starling Date: Thu, 20 Sep 2012 04:39:32 +0000 (+1000) Subject: Log page titles that are more than 10% of the node count limit X-Git-Tag: 1.31.0-rc.0~22328 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=ade7daae2c5a82bf2e287076ae378893dd89d72c;p=lhc%2Fweb%2Fwiklou.git Log page titles that are more than 10% of the node count limit Change-Id: I6824d305efd73de95ad15c65d3421886c2f86aa9 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 2a24bee79a..59d379a06e 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -491,6 +491,11 @@ class Parser { $PFreport; wfRunHooks( 'ParserLimitReport', array( $this, &$limitReport ) ); $text .= "\n\n"; + + if ( $this->mGeneratedPPNodeCount > $this->mOptions->getMaxGeneratedPPNodeCount() / 10 ) { + wfDebugLog( 'generated-pp-node-count', $this->mGeneratedPPNodeCount . ' ' . + $this->mTitle->getPrefixedDBkey() ); + } } $this->mOutput->setText( $text );