-
New Feature
-
Resolution: Fixed
-
Minor
-
4.3
-
MOODLE_403_STABLE
-
MOODLE_404_STABLE
-
MDL-80554-cron-debugdisplay -
It's gray is this is a bug or feature, but I would argue that debugdisplay is a setting which only has meaning in the context of a web page and should have no bearing on if debugging is shown in the task logs. debugdisplay is only typically on in a development environment and you never want the issues shown to a student but cron logs are never exposed to end users.
To reproduce install this:
https://github.com/catalyst/moodle-tool_testtasks
then compare the results of this with debugdisplay on and off:
php admin/cli/scheduled_task.php --execute='\tool_testtasks\task\mtrace_task'
|
In particular if a task has failed then the debugging is ramped up to developer, but none of those logs are shown because debugdisplay is off.
The solution could be:
a) make debugging ignore debugdisplay if it is a CLI script
b) make the cron processor turn on debugdisplay when it runs a script and especially when it has ramped up debugging if it has failed
I think a) is more correct but I'll do b) as its probably safer and much smaller in scope.
- has a non-specific relationship to
-
MDL-70568 If a task fails and is being re-run, temp increase the debugging
- Closed