From 1cf360cb766a09d75445be20353cdcfa7208b420 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 4 Jul 2006 14:26:14 +0000 Subject: [PATCH] Use wfDebugLog() for the job queue log. --- includes/DefaultSettings.php | 5 ----- includes/Wiki.php | 6 ++---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 9e5028bc8c..41073bf4df 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2121,11 +2121,6 @@ $wgAllowCategorizedRecentChanges = false ; */ $wgJobRunRate = 1; -/** - * Log file for job execution - */ -$wgJobLogFile = false; - /** * Number of rows to update per job */ diff --git a/includes/Wiki.php b/includes/Wiki.php index 4c4a8314b4..6f01000382 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -268,7 +268,7 @@ class MediaWiki { * Do a job from the job queue */ function doJobs() { - global $wgJobLogFile, $wgJobRunRate; + global $wgJobRunRate; if ( $wgJobRunRate <= 0 ) { return; @@ -294,9 +294,7 @@ class MediaWiki { } else { $output .= "Success, Time: $t ms\n"; } - if ( $wgJobLogFile ) { - error_log( $output, 3, $wgJobLogFile ); - } + wfDebugLog( 'jobqueue', $output ); } } -- 2.20.1