Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5785

Show uniquely identifying information when printing information about a node

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 4.5.19
    • Fix Version/s: None
    • Component/s: activation, core
    • Labels:
      None

      Description

      When logging information about a node it would be very helpful if the information uniquely identified the node. With Magnolia 4.5.19 I see the following in the logs when activating two nodes:

      INFO   info.magnolia.module.exchangesimple.BaseSyndicatorImpl 26.05.2014 17:23:51 -- Exchange: activation succeeded [/npodoc]
      INFO   info.magnolia.module.exchangesimple.BaseSyndicatorImpl 26.05.2014 17:23:51 -- Exchange: activation succeeded [/npodoc/2013/maart/rijksmuseum]
      

      I know that the first activation was a web page and the second was an image, but from the logs it is not obvious that the nodes with these paths are not in the same workspace.

      I would argue that whenever a string representation of a node is used, just a path is not enough. Prefixing the path with the workspace would help.

      It could look like this:

      INFO   info.magnolia.module.exchangesimple.BaseSyndicatorImpl 26.05.2014 17:23:51 -- Exchange: activation succeeded [website:/npodoc]
      INFO   info.magnolia.module.exchangesimple.BaseSyndicatorImpl 26.05.2014 17:23:51 -- Exchange: activation succeeded [media:/npodoc/2013/maart/rijksmuseum]
      

      This could even be in the toString() method of Node implementations?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            breun Nils Breunese
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: