mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-74182 core_task: Obey CFG debug settings
This commit is contained in:
parent
967d9b2546
commit
5d7509392d
1 changed files with 2 additions and 2 deletions
|
@ -69,11 +69,11 @@ if ($options['help'] or (!$options['list'] and !$options['execute'])) {
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($options['showdebugging']) {
|
if ($options['showdebugging'] || !empty($CFG->showcrondebugging)) {
|
||||||
set_debugging(DEBUG_DEVELOPER, true);
|
set_debugging(DEBUG_DEVELOPER, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($options['showsql']) {
|
if ($options['showsql'] || !empty($CFG->showcronsql)) {
|
||||||
$DB->set_debug(true);
|
$DB->set_debug(true);
|
||||||
}
|
}
|
||||||
if ($options['list']) {
|
if ($options['list']) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue