mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'w16_MDL-45049_m27_debugging' of https://github.com/skodak/moodle
This commit is contained in:
commit
b576d3fec0
@ -2840,7 +2840,7 @@ function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
|
||||
if (!$backtrace) {
|
||||
$backtrace = debug_backtrace();
|
||||
}
|
||||
$from = format_backtrace($backtrace, CLI_SCRIPT);
|
||||
$from = format_backtrace($backtrace, CLI_SCRIPT || NO_DEBUG_DISPLAY);
|
||||
if (PHPUNIT_TEST) {
|
||||
if (phpunit_util::debugging_triggered($message, $level, $from)) {
|
||||
// We are inside test, the debug message was logged.
|
||||
@ -2851,7 +2851,7 @@ function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
|
||||
if (NO_DEBUG_DISPLAY) {
|
||||
// Script does not want any errors or debugging in output,
|
||||
// we send the info to error log instead.
|
||||
error_log('Debugging: ' . $message . $from);
|
||||
error_log('Debugging: ' . $message . ' in '. PHP_EOL . $from);
|
||||
|
||||
} else if ($forcedebug or $CFG->debugdisplay) {
|
||||
if (!defined('DEBUGGING_PRINTED')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user