jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I154d6ff867f8b85b91a83f7351dd1f455d308690
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits