Merge "Revert "Use debug() for stash messages to match core""

This commit is contained in:
jenkins-bot 2016-07-07 22:09:23 +00:00 committed by Gerrit Code Review
commit 6f05edcd72

View file

@ -8,8 +8,6 @@
* @license The MIT License (MIT); see LICENSE.txt
*/
use MediaWiki\Logger\LoggerFactory;
class ApiVisualEditor extends ApiBase {
// These are safe even if VE is not enabled on the page.
// This is intended for other VE interfaces, such as Flow's.
@ -144,8 +142,7 @@ class ApiVisualEditor extends ApiBase {
$status = ApiStashEdit::parseAndStash( $page, $content, $this->getUser(), '' );
if ( $status === ApiStashEdit::ERROR_NONE ) {
$logger = LoggerFactory::getInstance( 'StashEdit' );
$logger->debug( 'StashEdit', "Cached parser output for VE content key '$key'." );
wfDebugLog( 'StashEdit', "Cached parser output for VE content key '$key'." );
}
$this->getStats()->increment( "editstash.ve_cache_stores.$status" );