Project

General

Profile

« Previous | Next » 

Revision 9964

Added by Jing Tao over 8 years ago

Change some debug statments from debug to trace.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
1801 1801
                    
1802 1802
                    currentNode.setNodeType(parentNode.getNodeType());
1803 1803
                    currentNode.setNodeName("");
1804
                    logMetacat.debug("DocumentImpl.buildIndex - Converted node " + currentNode.getNodeId() + 
1804
                    logMetacat.trace("DocumentImpl.buildIndex - Converted node " + currentNode.getNodeId() + 
1805 1805
                      " to type " + parentNode.getNodeType());
1806 1806
                    
1807 1807
                  	traverseParents(nodeRecordMap, rootNodeId,
......
1812 1812
                }
1813 1813
                // Lastly, update the xml_path_index table
1814 1814
                if(!pathsFound.isEmpty()){
1815
                	logMetacat.debug("DocumentImpl.buildIndex - updating path index");
1815
                	logMetacat.trace("DocumentImpl.buildIndex - updating path index");
1816 1816
                    	
1817 1817
                	updatePathIndex(dbConn, pathsFound);
1818 1818

  
......
1901 1901
                if (current.getNodeType().equals("ATTRIBUTE")) {
1902 1902
                    currentName = "@" + currentName;
1903 1903
                }
1904
                logMetacat.debug("DocumentImpl.traverseParents - A: " + currentName +"\n");
1904
                logMetacat.trace("DocumentImpl.traverseParents - A: " + currentName +"\n");
1905 1905
                if ( currentName != null ) {
1906 1906
                  if ( !currentName.equals("") ) {
1907 1907
                    pathList.put(currentName, new PathIndexEntry(leafNodeId,
......
1910 1910
                }
1911 1911
				if (pathsForIndexing.contains(currentName)
1912 1912
						&& leafData.trim().length() != 0) {
1913
					logMetacat.debug("DocumentImpl.traverseParents - paths found for indexing: " + currentName);
1913
					logMetacat.trace("DocumentImpl.traverseParents - paths found for indexing: " + currentName);
1914 1914
					pathsFoundForIndexing.put(currentName, new PathIndexEntry(
1915 1915
							leafNodeId, currentName, docid, leafParentId, leafData,
1916 1916
							leafDataNumerical, leafDataDate));
......
1929 1929
            String path = current.getNodeName() + children;
1930 1930
            
1931 1931
            if ( !children.equals("") ) {
1932
                logMetacat.debug("DocumentImpl.traverseParents - B: " + path +"\n");
1932
                logMetacat.trace("DocumentImpl.traverseParents - B: " + path +"\n");
1933 1933
                pathList.put(path, new PathIndexEntry(leafNodeId, path, docid,
1934 1934
                    doctype, parentId));
1935 1935
				if (pathsForIndexing.contains(path)
1936 1936
						&& leafData.trim().length() != 0) {
1937
					logMetacat.debug("DocumentImpl.traverseParents - paths found for indexing: " + currentName);
1937
					logMetacat.trace("DocumentImpl.traverseParents - paths found for indexing: " + currentName);
1938 1938
					pathsFoundForIndexing.put(path, new PathIndexEntry(leafNodeId,
1939 1939
							path, docid, leafParentId, leafData, leafDataNumerical, leafDataDate));
1940 1940
				}
......
1945 1945
                if ( !path.equals("") ) {
1946 1946
                  fullPath = '/' + path;
1947 1947
                }
1948
                logMetacat.debug("DocumentImpl.traverseParents - C: " + fullPath +"\n");
1948
                logMetacat.trace("DocumentImpl.traverseParents - C: " + fullPath +"\n");
1949 1949
                pathList.put(fullPath, new PathIndexEntry(leafNodeId, fullPath,
1950 1950
                    docid, doctype, parentId));
1951 1951

  
1952 1952
				if (pathsForIndexing.contains(fullPath)
1953 1953
						&& leafData.trim().length() != 0) {
1954
					logMetacat.debug("DocumentImpl.traverseParents - paths found for indexing: " + currentName);
1954
					logMetacat.trace("DocumentImpl.traverseParents - paths found for indexing: " + currentName);
1955 1955
					pathsFoundForIndexing.put(fullPath, new PathIndexEntry(
1956 1956
							leafNodeId, fullPath, docid, leafParentId, leafData,
1957 1957
							leafDataNumerical, leafDataDate));

Also available in: Unified diff