From 660cae851413c2eb16bfc849c0c657314dc919c9 Mon Sep 17 00:00:00 2001 From: Jforrester Date: Thu, 7 Jul 2016 21:59:02 +0000 Subject: [PATCH] Revert "Use debug() for stash messages to match core" This reverts commit 693b28a4bba633a97a1e834efb6271256388e99e. Bug: T139469 Change-Id: I54ae58a113977ffa31f0a82b2ca93938b35e842b --- ApiVisualEditor.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index c30a833d6c..c5c863f4eb 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -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" );