Project

General

Profile

« Previous | Next » 

Revision 3264

Added by Jing Tao over 17 years ago

Change the debug level for some statement

View differences:

src/edu/ucsb/nceas/metacat/DBQuery.java
552 552
      int currentIndex = 0;
553 553
      while (tableHasRows)
554 554
      {
555
        //logMetacat.warn("############getting result: " + currentIndex);
555
        logMetacat.info("############getting result: " + currentIndex);
556 556
        docid = rs.getString(1).trim();
557
        //logMetacat.warn("############processing: " + docid);
557
        logMetacat.info("############processing: " + docid);
558 558
        docname = rs.getString(2);
559 559
        doctype = rs.getString(3);
560
        //logMetacat.warn("############processing: " + doctype);
560
        logMetacat.info("############processing: " + doctype);
561 561
        createDate = rs.getString(4);
562 562
        updateDate = rs.getString(5);
563 563
        rev = rs.getInt(6);
......
568 568
        if (returndocVec.size() != 0 && !returndocVec.contains(doctype)
569 569
             && !qspec.isPercentageSearch())
570 570
         {
571
           logMetacat.warn("Back tracing now...");
571
           logMetacat.info("Back tracing now...");
572 572
           String sep = MetaCatUtil.getOption("accNumSeparator");
573 573
           StringBuffer btBuf = new StringBuffer();
574 574
           btBuf.append("select docid from xml_relation where ");
......
673 673
                  new ResultDocument(docid, (String) document.toString()));
674 674
                currentIndex++;
675 675
                //list.put(docid, docid);
676
                //logMetacat.warn("$$$$$$$real result: " + docid);
676
                logMetacat.info("$$$$$$$real result: " + docid);
677 677
                count++;
678 678

  
679 679
                // Get the next package document linked to our hit
......
684 684
        }
685 685
        else if (returndocVec.size() == 0 || returndocVec.contains(doctype))
686 686
        {
687
          logMetacat.warn("NOT Back tracing now...");
687
          logMetacat.info("NOT Back tracing now...");
688 688
           document = new StringBuffer();
689 689

  
690 690
           String completeDocid = docid
......
711 711
           
712 712
           docListResult.addResultDocument(
713 713
             new ResultDocument(docid, (String) document.toString()));
714
           logMetacat.warn("$$$$$$$real result: " + docid);
714
           logMetacat.info("$$$$$$$real result: " + docid);
715 715
           currentIndex++;
716 716
           count++;
717 717
        }//else
......
729 729
          docListResult = new ResultDocumentSet();
730 730
        }
731 731
       
732
       logMetacat.warn("currentIndex: " + currentIndex);
733
       logMetacat.warn("page comparator: " + (pagesize * pagestart) + pagesize);
732
       logMetacat.info("currentIndex: " + currentIndex);
733
       logMetacat.info("page comparator: " + (pagesize * pagestart) + pagesize);
734 734
       if(currentIndex >= ((pagesize * pagestart) + pagesize))
735 735
       {
736 736
         ResultDocumentSet pagedResultsHash = new ResultDocumentSet();

Also available in: Unified diff