* @ingroup Maintenance ExternalStorage
*/
+use MediaWiki\Logger\LegacyLogger;
+
$optionsWithArgs = RecompressTracked::getOptionsWithArgs();
require __DIR__ . '/../commandLine.inc';
$header .= "({$this->slaveId})";
}
$header .= ' ' . wfWikiID();
- MWLoggerLegacyLogger::emit( sprintf( "%-50s %s\n", $header, $msg ), $file );
+ LegacyLogger::emit( sprintf( "%-50s %s\n", $header, $msg ), $file );
}
/**
array( 'file', 'php://stdout', 'w' ),
array( 'file', 'php://stderr', 'w' )
);
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$proc = proc_open( "$cmd --slave-id $i", $spec, $pipes );
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( !$proc ) {
$this->critical( "Error opening slave process: $cmd" );
exit( 1 );