Legoktm has uploaded a new change for review.

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

Change subject: Use namespaced LoggerFactory class
......................................................................

Use namespaced LoggerFactory class

See 1195e11a8a088f in mediawiki/core.

Change-Id: I72094a2f7c23b1917c91a144e193e948e7ae563f
---
M api/ApiListExtDistRepos.php
M specials/SpecialBaseDistributor.php
2 files changed, 6 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ExtensionDistributor 
refs/changes/99/201999/1

diff --git a/api/ApiListExtDistRepos.php b/api/ApiListExtDistRepos.php
index 63c7f6c..c1464cf 100644
--- a/api/ApiListExtDistRepos.php
+++ b/api/ApiListExtDistRepos.php
@@ -1,5 +1,7 @@
 <?php
 
+use MediaWiki\Logger\LoggerFactory;
+
 class ApiListExtDistRepos extends ApiQueryGeneratorBase {
 
        public function __construct( ApiQuery $query, $moduleName ) {
@@ -15,7 +17,7 @@
        }
 
        public function run() {
-               $logger = MWLoggerFactory::getInstance( 'ExtensionDistributor' 
);
+               $logger = LoggerFactory::getInstance( 'ExtensionDistributor' );
                $extProvider = ExtDistProvider::getProviderFor( 
ExtDistProvider::EXTENSIONS );
                $extProvider->setLogger( $logger );
                $skinProvider = ExtDistProvider::getProviderFor( 
ExtDistProvider::SKINS );
diff --git a/specials/SpecialBaseDistributor.php 
b/specials/SpecialBaseDistributor.php
index 0427614..c7e4efa 100644
--- a/specials/SpecialBaseDistributor.php
+++ b/specials/SpecialBaseDistributor.php
@@ -1,5 +1,7 @@
 <?php
 
+use MediaWiki\Logger\LoggerFactory;
+
 /**
  * Base class for special pages that allow users to download repository 
snapshots
  *
@@ -39,7 +41,7 @@
                global $wgExtDistAPIConfig;
 
                $this->setHeaders();
-               $this->logger = MWLoggerFactory::getInstance( 
'ExtensionDistributor' );
+               $this->logger = LoggerFactory::getInstance( 
'ExtensionDistributor' );
 
                if ( !$wgExtDistAPIConfig ) {
                        $this->getOutput()->addWikiMsg( 
'extdist-not-configured' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I72094a2f7c23b1917c91a144e193e948e7ae563f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ExtensionDistributor
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to