MDL-80309 tasks: Clean up mtrace logs

This commit is contained in:
Brendan Heywood
2023-12-07 12:08:05 +08:00
committed by Jun Pataleta
parent bdb5a4ba40
commit b654282b18
4 changed files with 34 additions and 3 deletions
+1
View File
@@ -89,6 +89,7 @@ echo $OUTPUT->select_element_for_append();
// Prepare to handle output via mtrace.
echo html_writer::start_tag('pre', ['style' => 'color: #fff; background: #333; padding: 1em; min-height: 24lh']);
require('lib.php');
$CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';
// Run the specified task (this will output an error if it doesn't exist).