navnorth / wp-oer

WordPress OER Plugin
GNU General Public License v3.0
8 stars 2 forks source link

debug mode #19

Closed joehobson closed 7 years ago

joehobson commented 9 years ago

Add a global debug mode, with a checkbox in the Settings page, similar to how we did it with the OII content-mirror plugin. Then put some debug on the screenshot feature so we can see what's going on there. I removed the comments on the xvfb portion on the test server (see #17) but it's still not getting screenshots correctly. Need better debug so we know what's going on.

It would also be helpful to add some debug on standards, category, and resource imports if those fail.

johnpaulbalagolan commented 9 years ago

fixed #19 with latest source code committed to github

joehobson commented 8 years ago

could be done cleaner. add a helper function for debug_log() so that we can use it in the code wherever without having to check the debug setting all over the place. Simplify it, so this:

global $_debug;
if ($_debug=="on")
    error_log("OER Categories Importer: Initializing Excel Reader");

can just be: debug_log("OER Categories Importer: Initializing Excel Reader");

johnpaulbalagolan commented 8 years ago

Fixed #19 with latest code committed to github