Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42512

Add session attribute tracking for debugging purposes

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 20.0 [Tentative]
    • Fix Version/s: 20.0 [Tentative]
    • Component/s: Kernel
    • Labels:
    • Test Plan:
      Hide

      No Test Plan as this is not a user facing feature but a tool for debugging the session 

      Show
      No Test Plan as this is not a user facing feature but a tool for debugging the session 

      Description

      As we begin to debug what attributes are being added to the session it helps to have some debugging statements added when the attributes are being added.

      Can be enabled by adding debug like: 

       

      log.config.1=DEBUG.org.sakaiproject.tool.impl.MySession
      log.config.2=DEBUG.org.sakaiproject.tool.impl.MyLittleSession 
      

      or the more informative trace level via:

       

      log.config.1=TRACE.org.sakaiproject.tool.impl.MySession
      log.config.2=TRACE.org.sakaiproject.tool.impl.MyLittleSession
      

      or

      log.config.1=ALL.org.sakaiproject.tool.impl.MySession
      log.config.2=ALL.org.sakaiproject.tool.impl.MyLittleSession

       

      example:

      17-Sep-2019 16:33:29.936 DEBUG [http-nio-8080-exec-8] org.sakaiproject.tool.impl.MyLittleSession.setAttribute sizeOf [tool context = de79755d-666b-495b-a51d-d7e14d252bb9]:[com.sun.faces.renderkit.ServerSideStateHelper.LogicalViewMap => java.util.Collections$SynchronizedMap] size is 96 bytes, dumping object tree:
            96       32  root => <SynchronizedMap#0>
             0        0  +- Set entrySet => null
             0        0  +- Set keySet => null
            64       64  +- Map m => <LRUMap#1>
             0        0  |  +- Set entrySet => null
             0        0  |  +- Entry head => null
             0        0  |  +- Set keySet => null
             0        0  |  +- Node[] table => null
             0        0  |  +- Entry tail => null
             0        0  |  +- Collection values => null
             0        0  +- [seen <SynchronizedMap#0>]
             0        0  +- Collection values => null 

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ern Earle R Nietzel
                Reporter:
                ern Earle R Nietzel
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code