jenkins-bot has submitted this change and it was merged.

Change subject: Include the backtrace in the log for job exceptions
......................................................................


Include the backtrace in the log for job exceptions

Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3
---
M maintenance/runJobs.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Demon: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php
index 6a6f9d2..9dac031 100644
--- a/maintenance/runJobs.php
+++ b/maintenance/runJobs.php
@@ -102,7 +102,7 @@
                                } 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 );

-- 
To view, visit https://gerrit.wikimedia.org/r/70556
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to