Project

General

Profile

« Previous | Next » 

Revision 2714

Added by sgarg over 18 years ago

Modified the debug levels of debug statements

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
1451 1451
        pstmt.setString(1, familyId);
1452 1452
        int rows = pstmt.executeUpdate();
1453 1453
        pstmt.close();
1454
        logMetacat.debug("Deleted " + rows + " rows from xml_index " +
1454
        logMetacat.info("Deleted " + rows + " rows from xml_index " +
1455 1455
            "for document " + docid);
1456 1456
    }
1457 1457

  
src/edu/ucsb/nceas/metacat/DBConnectionPool.java
651 651
     DBConnection conn = null; // the dbconnection
652 652
     connectionPoolSize = connectionPool.size();
653 653
     freeConnectionSize = getFreeDBConnectionNumber();
654
     logMetacat.warn("Connection pool size: " +connectionPoolSize);
655
     logMetacat.warn("Free Connection number: "+freeConnectionSize);
654
     if(freeConnectionSize < connectionPoolSize){
655
    	 int numberOfConnections = connectionPoolSize - freeConnectionSize;
656
    	 logMetacat.warn(numberOfConnections + "connections " +
657
    	 		"being used out of " +connectionPoolSize + " connections");
658
     } else {
659
    	 logMetacat.info("Connection pool size: " +connectionPoolSize);
660
    	 logMetacat.info("Free Connection number: "+freeConnectionSize);
661
     }
656 662
     difference = connectionPoolSize - freeConnectionSize;
657 663
     
658 664
     //If all connections are free and connection pool size greater than 
src/edu/ucsb/nceas/metacat/DBSAXHandler.java
530 530
                long stopTime = System.currentTimeMillis();
531 531
                if ((stopTime - startTime) > INDEXDELAY) { throw new Exception(
532 532
                        "Couldn't find the docid for index build in "
533
                                + "reseaonable time!"); }
533
                                + "reseaonable time!"); 
534
                	logMetacat.warn("Couldn't find the docid for index build in "
535
                            + "reseaonable time!");
536
                }
534 537
            }//while
535 538
        } catch (Exception e) {
536 539
            try {

Also available in: Unified diff