Skip to content
Snippets Groups Projects
Commit 4f9aed1e authored by Nadav Kavalerchik's avatar Nadav Kavalerchik Committed by GitHub
Browse files

Bind Moodle $CFG->debug to $loggingenabled

Turn on xapi_logstore file debugging when Moodle debugging is turned on.
(maybe this should go into os level standard logs as well, so it not bloating inside the folder?)
parent 6d58d899
No related branches found
No related tags found
No related merge requests found
......@@ -65,10 +65,16 @@ class store extends php_obj implements log_writer {
* @param log_manager $manager
*/
public function __construct(log_manager $manager) {
global $CFG;
$this->helper_setup($manager);
$this->logguests = $this->get_config('logguests', 1);
$routes = $this->get_config('routes', '');
$this->routes = $routes === '' ? [] : explode(',', $routes);
if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) {
$this->loggingenabled = true;
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment