Make $wgShowExceptionDetails=false more feasible for production
authorTim Starling <tstarling@wikimedia.org>
Mon, 7 May 2012 23:53:58 +0000 (09:53 +1000)
committerTim Starling <tstarling@wikimedia.org>
Tue, 8 May 2012 00:01:13 +0000 (10:01 +1000)
commit70841c5867c4a97311e49be8fbcb1a4841a90406
tree41bcaf241475c70296b6a9b7e10a6aae1efa33f8
parentec299eabb6e944b6a2b5db1c3530508d30d53046
Make $wgShowExceptionDetails=false more feasible for production

* Make the HTML error message prettier, with a nice red box and
  instructions to modify LocalSettings.php hidden in an HTML comment.
* Show the exception class name, since that's pretty safe.
* Show a random "log ID" to the user, and also send it to the exception
  log, to allow easier log correlation.
* Optionally send backtraces to the error log, enabled by default.

Change-Id: Ie92e46032b3d194c4217119567847a38a53be577
RELEASE-NOTES-1.20
includes/DefaultSettings.php
includes/Exception.php