Skip to content

Commit

Permalink
MDL-74182 core_task: Obey CFG debug settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmerrill committed Mar 14, 2022
1 parent 967d9b2 commit 5d75093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/cli/scheduled_task.php
Expand Up @@ -69,11 +69,11 @@
die;
}

if ($options['showdebugging']) {
if ($options['showdebugging'] || !empty($CFG->showcrondebugging)) {
set_debugging(DEBUG_DEVELOPER, true);
}

if ($options['showsql']) {
if ($options['showsql'] || !empty($CFG->showcronsql)) {
$DB->set_debug(true);
}
if ($options['list']) {
Expand Down

0 comments on commit 5d75093

Please sign in to comment.