From 5d7509392d1d72cb81e3f908d64bc2791168b386 Mon Sep 17 00:00:00 2001 From: Eric Merrill Date: Sun, 13 Mar 2022 23:57:13 -0400 Subject: [PATCH] MDL-74182 core_task: Obey CFG debug settings --- admin/cli/scheduled_task.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/cli/scheduled_task.php b/admin/cli/scheduled_task.php index b181b1549bf..367cda28e85 100644 --- a/admin/cli/scheduled_task.php +++ b/admin/cli/scheduled_task.php @@ -69,11 +69,11 @@ if ($options['help'] or (!$options['list'] and !$options['execute'])) { 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']) {