WMDE-Fisch has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/343279 )
Change subject: Replace deprecated Context::getStats() with
MWServices::getStatsdDataFactory()
......................................................................
Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()
Change-Id: If7ef514b625e67268d524477ac43ad9bc3dcae5f
---
M ApiVisualEditorEdit.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/79/343279/1
diff --git a/ApiVisualEditorEdit.php b/ApiVisualEditorEdit.php
index b054f4a..1d0747f 100644
--- a/ApiVisualEditorEdit.php
+++ b/ApiVisualEditorEdit.php
@@ -176,7 +176,9 @@
$logger = LoggerFactory::getInstance( 'StashEdit' );
$logger->debug( "Cached parser output for VE content
key '$key'." );
}
- $this->getStats()->increment(
"editstash.ve_cache_stores.$status" );
+
MediaWikiServices::getInstance()->getStatsdDataFactory()->increment(
+ "editstash.ve_cache_stores.$status"
+ );
return $hash;
}
--
To view, visit https://gerrit.wikimedia.org/r/343279
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If7ef514b625e67268d524477ac43ad9bc3dcae5f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: WMDE-Fisch <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits