Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-330

Make SimpleXMLCollection be quiet

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: .indexing
    • Labels:
      None

      Description

      SimpleXMLCollectijon prints debugging messages to System.err on attribute nodes. Other similar lines are commented out. Here is the patch:

      --- SimpleXMLCollection.java.orig 2015-02-25 10:29:36.000000000 -0500
      +++ SimpleXMLCollection.java 2015-02-25 10:29:49.000000000 -0500
      @@ -169,7 +169,7 @@
        {
        String attributeName = (parentNodeName +
        ELEMENT_ATTR_SEPARATOR + n.getNodeName()).toLowerCase();
      - System.err.println("ATTRIBUTE NODE " + attributeName+" "+n.getNodeValue());
      + // System.err.println("ATTRIBUTE NODE " + attributeName+" "+n.getNodeValue());
        if(DocIdIsAttribute && attributeName.equals(DocIdLocation))
        ThisDocId = n.getNodeValue().replaceAll("\n","");
        if(PropertiesInAttibutes && PropertyElements.containsKey(attributeName))

        Attachments

          Activity

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              isoboroff Ian Soboroff
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: