From 10f9bbb7710a9a6b7f2c995b84f5cf6cfbfdb943 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 23 May 2008 19:26:44 +0000 Subject: [PATCH] add timestamps to runJobs output, should make it easier to track down stuck job queue runners --- maintenance/runJobs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 48798f74f5..d610b8cc32 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -39,10 +39,10 @@ while ( $dbw->selectField( 'job', 'count(*)', $conds, 'runJobs.php' ) ) { break; wfWaitForSlaves( 5 ); - print $job->id . " " . $job->toString() . "\n"; + print wfTimestamp( TS_DB ) . " " . $job->id . " " . $job->toString() . "\n"; $offset=$job->id; if ( !$job->run() ) { - print "Error: {$job->error}\n"; + print wfTimestamp( TS_DB ) . " Error: {$job->error}\n"; } if ( $maxJobs && ++$n > $maxJobs ) { break 2; -- 2.20.1