-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind Moodle $CFG->debug to $loggingenabled #141
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove all white spaces (Moodle coding style) |
||
if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might have used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I Agree, just used an old piece of code from another plugin I have. |
||
$this->loggingenabled = true; | ||
} | ||
} | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove all white spaces (Moodle coding style)