Manual:$wgLogExceptionBacktrace

Details
Whether to send the exception backtrace to the error log.