Project

General

Profile

« Previous | Next » 

Revision 7461

add debug statements for listObject slice debugging

View differences:

src/edu/ucsb/nceas/metacat/IdentifierManager.java
1530 1530
                countStmt.setTimestamp(1, new Timestamp(endTime.getTime()));
1531 1531
            }
1532 1532

  
1533
            // logMetacat.debug("LISTOBJECTS QUERY: " + fieldStmt.toString());
1534

  
1533
            logMetacat.debug("list objects fieldStmt: " + fieldStmt.toString());
1534
            
1535
            logMetacat.debug("list objects countStmt: " + countStmt.toString());
1536
            
1535 1537
            // get the total object count no matter what
1536 1538
            int total = 0;
1537 1539
            ResultSet totalResult = countStmt.executeQuery();
......
1539 1541
            	total = totalResult.getInt(1);
1540 1542
            }
1541 1543
            
1544
            logMetacat.debug("list objects total: " + total);
1545

  
1542 1546
        	// set the totals
1543 1547
        	ol.setStart(start);
1544 1548
            ol.setCount(count);
......
1551 1555
	            while (rs.next()) {                
1552 1556
	                
1553 1557
	                String guid = rs.getString(1);
1554
	                // logMetacat.debug("query found doc with guid " + guid);
1558
	                logMetacat.debug("query found object with guid " + guid);
1555 1559
	                // Timestamp dateUploaded = rs.getTimestamp(2);
1556 1560
	                // String rightsHolder = rs.getString(3);
1557 1561
	                String checksum = rs.getString(4);
......
1600 1604

  
1601 1605
	            }
1602 1606
	            
1607
	            logMetacat.debug("list objects count: " + ol.sizeObjectInfoList());
1608

  
1603 1609
	            // set the actual count retrieved
1604 1610
	            ol.setCount(ol.sizeObjectInfoList());
1605 1611
	

Also available in: Unified diff