milleruntime commented on issue #2659:
URL: https://github.com/apache/accumulo/issues/2659#issuecomment-1112059130

   One good place to start would be `function.js`. There are a lot of Jquery 
REST calls here, so each function could display some data about the REST call. 
We could log part of the URL to the REST call and where in the session storage 
that we are putting the data. For example:
   <pre>
   /**
    * REST GET call for the server status, stores it on a sessionStorage 
variable
    */
   function getStatus() {
     return $.getJSON('/rest/status', function(data) {
       sessionStorage.status = JSON.stringify(data);
     });
   }
   </pre>
   
   A call to `console.info()` could be added to the above function printing 
what gets put into the JSON string and where it is put:
   <pre>
   console.info("Call to '/rest/status'");
     return $.getJSON('/rest/status', function(data) {
       var str = JSON.stringify(data);
       sessionStorage.status = str;
       console.info("REST call stored: sessionStorage.status = " + str);
     });
   </pre>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to