Issue Details (XML | Word | Printable)

Key: MDL-10827
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Martin Dougiamas
Reporter: Eloy Lafuente (stronk7)
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Centralise all the debug reporting within Moodle

Created: 13/Aug/07 12:00 AM   Updated: 24/Sep/07 06:15 PM
Return to search
Component/s: General
Affects Version/s: 1.9
Fix Version/s: 2.0

Participants: Eloy Lafuente (stronk7), Martin Dougiamas and Petr Skoda
Security Level: None
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
Currently we have one nice debugging() that should be used to receive and log as many information as possible.

But there are a bunch of uses of the direct error_log() php function instead. One quick grep reveals at least these (leaving apart 3rd part libraries):

admin/handlevirus.php
admin/report/courseoverview/index.php
auth/cas/auth.php
auth/cas/CAS/CAS.php
auth/cas/cas_ldap_sync_users.php
auth/db/auth.php
auth/db/auth_db_sync_users.php
auth/ldap/auth.php
auth/ldap/auth_ldap_sync_users.php
auth/mnet/auth.php
backup/backup_execute.html
backup/restore_execute.html
course/rest.php
enrol/database/enrol.php
enrol/database/enrol_database_sync.php
enrol/ldap/enrol.php
enrol/ldap/enrol_ldap_sync.php
lang/en_utf8/admin.php
lib/dmllib.php
lib/moodlelib.php
lib/simpletestlib/errors.php
lib/statslib.php
lib/uploadlib.php
lib/weblib.php
mod/wiki/ewiki/ewiki.php

So, I would propose to:

1) Modify the current $CFG->debugdisplay behavior to allow, "on page", "on error log" and "both"
2) Modify as many current direct call to error_log() to use the debugging() one.

That's all. Ciao :-)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
No commits have yet been performed on this issue.