mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-20374 default exception handler: log backtrace to webserver log if DEBUG_MINIMAL or greater.
This commit is contained in:
parent
dedb239dc0
commit
89781f3c0e
@ -214,6 +214,10 @@ function default_exception_handler($ex, $isupgrade = false, $plugin = null) {
|
||||
echo $OUTPUT->fatal_error($message, $moreinfourl, $link, $backtrace, $debuginfo);
|
||||
}
|
||||
|
||||
$errmsg = "Default exception handler: " . $ex->getMessage() . "\n" . format_backtrace($backtrace);
|
||||
if (debugging($errmsg, DEBUG_MINIMAL)) {
|
||||
error_log($errmsg, 0);
|
||||
}
|
||||
exit(1); // General error code
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user