Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66833

Make print_object understand WS

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8, 3.9
    • Fix Version/s: 3.9
    • Component/s: General
    • Labels:
    • Testing Instructions:
      Hide
      1. Open lib/external/externallib.php in your editor
      2. Find the fetch_notifications function
      3. After the $context = ... line, add:

        print_object($context);
        

      4. Tail your web server's error log:

        tail -f /var/log/httpd/error.log
        tail -f /var/log/apache/error.log
        tail -f /usr/local/var/log/httpd/error_log
        // etc...
        

      5. Login as any user to your site
        1. Confirm you see the printed object in a sane and readable fashion
      Show
      Open lib/external/externallib.php in your editor Find the fetch_notifications function After the $context = ... line, add: print_object($context); Tail your web server's error log: tail -f /var/log/httpd/error.log tail -f /var/log/apache/error.log tail -f /usr/local/var/log/httpd/error_log // etc... Login as any user to your site Confirm you see the printed object in a sane and readable fashion
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-66833-master

      Description

      Super easy change to make print_object() more usable in web services.

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Lyons
            Reporter:
            dobedobedoh Andrew Lyons
            Peer reviewer:
            Peter Dias Peter Dias
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            Janelle Barcega Janelle Barcega
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jun/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 21 minutes
                1h 21m