$this->addOption( 'type', 'Type of job to run', false, true );
$this->addOption( 'procs', 'Number of processes to use', false, true );
$this->addOption( 'nothrottle', 'Ignore job throttling configuration', false, false );
- $this->addOption( 'result', 'Set to JSON to print only a JSON response', false, false );
+ $this->addOption( 'result', 'Set to JSON to print only a JSON response', false, true );
}
public function memoryLimit() {
$json = ( $this->getOption( 'result' ) === 'json' );
- $runner = new JobRunner();
+ $runner = new JobRunner( MWLoggerFactory::getInstance( 'runJobs' ) );
if ( !$json ) {
$runner->setDebugHandler( array( $this, 'debugInternal' ) );
}