Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20676 Error, exception and debug handling improvements
  3. MDL-20693

new NO_DEBUG_DISPLAY define which disables all debugging and errors in output

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Needed in all scripts that serve binary content or strict XML.

      Replaces:

      • disable_debugging() - it did not work much because trigger_error was getting to output
      • MOODLE_SANE_OUTPUT which was a bit confusing for most devs except ML, it was altering our magic quotes too which might cause major problems in our libs
      • various $CFG->debug hacks - CFG should not be modified on the fly

      The name was derived from $CFG->debugdisplay - the NO_DEBUG_DISPLAY overrides this setting when debug & errors do not make much sense in output

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            skodak Petr Skoda
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10