summaryrefslogtreecommitdiff
path: root/maintenance/runJobs.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/runJobs.php')
-rw-r--r--maintenance/runJobs.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php
index 40605ceb..3864e3c6 100644
--- a/maintenance/runJobs.php
+++ b/maintenance/runJobs.php
@@ -23,6 +23,8 @@
require_once __DIR__ . '/Maintenance.php';
+use MediaWiki\Logger\LoggerFactory;
+
/**
* Maintenance script that runs pending jobs.
*
@@ -68,7 +70,7 @@ class RunJobs extends Maintenance {
$json = ( $this->getOption( 'result' ) === 'json' );
- $runner = new JobRunner();
+ $runner = new JobRunner( LoggerFactory::getInstance( 'runJobs' ) );
if ( !$json ) {
$runner->setDebugHandler( array( $this, 'debugInternal' ) );
}