From f52950c33ecb4e815e17e5c728b288472e5fbf20 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 25 Jun 2013 15:33:58 -0700 Subject: [PATCH] Include the backtrace in the log for job exceptions Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3 --- maintenance/runJobs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 6a6f9d2723..9dac031c28 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -102,7 +102,7 @@ class RunJobs extends Maintenance { } catch ( MWException $e ) { $status = false; $error = get_class( $e ) . ': ' . $e->getMessage(); - wfDebugLog( 'exception', $e->getLogMessage() ); + $e->report(); // write error to STDERR and the log } wfProfileOut( __METHOD__ . '-' . get_class( $job ) ); $timeMs = intval( ( microtime( true ) - $t ) * 1000 ); -- 2.20.1