Use wfDebugLog() for the job queue log.
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Jul 2006 14:26:14 +0000 (14:26 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Jul 2006 14:26:14 +0000 (14:26 +0000)
includes/DefaultSettings.php
includes/Wiki.php

index 9e5028b..41073bf 100644 (file)
@@ -2121,11 +2121,6 @@ $wgAllowCategorizedRecentChanges = false ;
  */
 $wgJobRunRate = 1;
 
-/**
- * Log file for job execution
- */
-$wgJobLogFile = false;
-
 /**
  * Number of rows to update per job
  */
index 4c4a831..6f01000 100644 (file)
@@ -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 );
                }
        }