Use debug() for stash messages to match core

Change-Id: I366d14d41143d55740e178a16b0af84c5a8ea272
This commit is contained in:
Aaron Schulz 2016-06-20 14:50:26 -07:00
parent 20b93019a0
commit 693b28a4bb

View file

@ -8,6 +8,8 @@
* @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.
@ -142,7 +144,8 @@ class ApiVisualEditor extends ApiBase {
$status = ApiStashEdit::parseAndStash( $page, $content, $this->getUser(), '' );
if ( $status === ApiStashEdit::ERROR_NONE ) {
wfDebugLog( 'StashEdit', "Cached parser output for VE content key '$key'." );
$logger = LoggerFactory::getInstance( 'StashEdit' );
$logger->debug( 'StashEdit', "Cached parser output for VE content key '$key'." );
}
$this->getStats()->increment( "editstash.ve_cache_stores.$status" );