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

Show uniquely identifying information when printing information about a node

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • 4.5.19
    • activation, core
    • None

      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?

        Acceptance criteria

              Unassigned Unassigned
              breun Nils Breunese
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD