Include the backtrace in the log for job exceptions
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 25 Jun 2013 22:33:58 +0000 (15:33 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 25 Jun 2013 23:16:05 +0000 (23:16 +0000)
Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3

maintenance/runJobs.php

index 6a6f9d2..9dac031 100644 (file)
@@ -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 );