Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1889

Disable error reporting by default

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.2
    • Component/s: Error reporting
    • Labels:
    • Testing Instructions:
      Hide

      I didn't find any easy way to test this, so we'll throw the error function manually.

      1. Modify the file www/index.html to include the error reporting library like it's done in here.
      2. In the app, go to App Settings > General and check that report errors is disabled.
      3. In console, run the following command:

        window.onerror('Fake message for testing', 'url', 0)
        

      4. Check that you don't receive any email in the mobile account.
      5. Now in app settings enable the error reporting and execute the following command (please notice that the message has changed since the same error cannot be reported twice):

        window.onerror('Fake message for testing 2', 'url', 0)
        

      6. Check that you receive an email in the Mobile account.
      Show
      I didn't find any easy way to test this, so we'll throw the error function manually. Modify the file www/index.html to include the error reporting library like it's done in here . In the app, go to App Settings > General and check that report errors is disabled. In console, run the following command: window.onerror('Fake message for testing', 'url', 0) Check that you don't receive any email in the mobile account. Now in app settings enable the error reporting and execute the following command (please notice that the message has changed since the same error cannot be reported twice): window.onerror('Fake message for testing 2', 'url', 0) Check that you receive an email in the Mobile account.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Sprint:
      Moodle Mobile 3.2

      Description

      We shouldn't display errors to final users anymore.

      Errors will be sent to Moodle only if the "Report errors automatically" preference is on.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Integrator:
            Juan Leyva
            Tester:
            Berta Maroto
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Dec/16