EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/174032
Change subject: Fix allowunknownusernames cli option, and add a little debug
logging
......................................................................
Fix allowunknownusernames cli option, and add a little debug logging
Change-Id: Ic03a965ab47833af4c8f60a5166d5403e6b50ace
---
M maintenance/convertLqt.php
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/32/174032/1
diff --git a/maintenance/convertLqt.php b/maintenance/convertLqt.php
index 99df380..b57ad48 100644
--- a/maintenance/convertLqt.php
+++ b/maintenance/convertLqt.php
@@ -20,7 +20,7 @@
$this->addOption( 'remoteapi', 'Remote API URL to read from',
false, true );
$this->addOption( 'logfile', 'File to read and store
associations between imported items and their sources', false, true );
$this->addOption( 'verbose', 'Report on import progress to
stdout' );
- $this->addOption( 'allowunknownusernames', 'Allow import of
usernames that do not exist on this wiki. DO NOT USE IN PRODUCTION. This
simplifies testing imports of production data to a test wiki', false, true );
+ $this->addOption( 'allowunknownusernames', 'Allow import of
usernames that do not exist on this wiki. DO NOT USE IN PRODUCTION. This
simplifies testing imports of production data to a test wiki' );
}
public function execute() {
@@ -38,7 +38,9 @@
$importer = Flow\Container::get( 'importer' );
if ( $this->getOption( 'verbose' ) ) {
- $importer->setLogger( new MaintenanceDebugLogger( $this
) );
+ $logger = new MaintenanceDebugLogger( $this );
+ $importer->setLogger( $logger );
+ $logger->info( "Starting LQT import from $srcPageName
to $dstPageName" );
}
if ( $this->getOption( 'allowunknownusernames' ) ) {
$importer->setAllowUnknownUsernames( true );
--
To view, visit https://gerrit.wikimedia.org/r/174032
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic03a965ab47833af4c8f60a5166d5403e6b50ace
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits