From: Aaron Schulz Date: Tue, 25 Jun 2013 22:33:58 +0000 (-0700) Subject: Include the backtrace in the log for job exceptions X-Git-Tag: 1.31.0-rc.0~19344^2 X-Git-Url: http://git.cyclocoop.org//%22%22.url_de_base%28%29.%22/%22?a=commitdiff_plain;h=f52950c33ecb4e815e17e5c728b288472e5fbf20;p=lhc%2Fweb%2Fwiklou.git Include the backtrace in the log for job exceptions Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3 --- 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 );