Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/297931

Change subject: Use debug() for spammy edit stash log messages
......................................................................

Use debug() for spammy edit stash log messages

Change-Id: I154d6ff867f8b85b91a83f7351dd1f455d308690
---
M ApiVisualEditor.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/31/297931/1

diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index 20af840..896b87b 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -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 @@
 
                $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( "Cached parser output for VE content 
key '$key'." );
                }
                $this->getStats()->increment( 
"editstash.ve_cache_stores.$status" );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/297931
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I154d6ff867f8b85b91a83f7351dd1f455d308690
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to