mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Use debug() for stash messages to match core
Change-Id: I366d14d41143d55740e178a16b0af84c5a8ea272
This commit is contained in:
parent
20b93019a0
commit
693b28a4bb
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in a new issue