Project

General

Profile

« Previous | Next » 

Revision 2647

Added by Jing Tao about 19 years ago

Remove some debug message.

View differences:

src/edu/ucsb/nceas/metacat/ReplicationHandler.java
293 293
      {
294 294
         throw new Exception(newxmldoc);
295 295
      }
296
      MetaCatUtil.debugMessage("xml documnet:", 45);
297
      MetaCatUtil.debugMessage(newxmldoc, 45);
296
      //MetaCatUtil.debugMessage("xml documnet:", 45);
297
      //MetaCatUtil.debugMessage(newxmldoc, 45);
298 298

  
299 299
      // Try get the docid info from remote server
300 300
      DocInfoHandler dih = new DocInfoHandler();
......
879 879
  {
880 880
    DateFormat format = DateFormat.getTimeInstance(DateFormat.SHORT);
881 881
    Date time = format.parse(timeString); 
882
    System.out.println("Date string is after parse a time string "+time.toString());
882
    MetaCatUtil.debugMessage("Date string is after parse a time string "
883
                              +time.toString(), 50);
883 884
    return time;
884 885

  
885 886
  }
......
892 893
  {
893 894
    DateFormat format = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.SHORT);
894 895
    Date time = format.parse(timeString);
895
    System.out.println("Date string is after parse a time string "+time.toString());
896
    MetaCatUtil.debugMessage("Date string is after parse a time string "+
897
                             time.toString(), 50);
896 898
    return time;
897 899
  }
898 900
  
......
903 905
  {
904 906
     DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
905 907
     String s = df.format(now);
906
     System.out.println("Today is " + s);
908
     MetaCatUtil.debugMessage("Today is " + s, 50);
907 909
     return s;
908 910
  }
909 911
  
......
914 916
  {
915 917
     DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
916 918
     String s = df.format(now);
917
     System.out.println("Time is " + s);
919
     MetaCatUtil.debugMessage("Time is " + s, 50);
918 920
     return s;
919 921
  }
920 922
  
......
1066 1068
                                        throws Exception
1067 1069
   {
1068 1070
       // compare the update rev and local rev to see what need happen
1069
       System.out.println("In handle repliation revsion table");
1070
       System.out.println("the docid is "+ docid);
1071
       System.out.println("The rev is "+rev);
1071
       MetaCatUtil.debugMessage("In handle repliation revsion table", 50);
1072
       MetaCatUtil.debugMessage("the docid is "+ docid, 50);
1073
       MetaCatUtil.debugMessage("The rev is "+rev, 50);
1072 1074
       Vector localrev = null;
1073 1075
       String action = "INSERT";
1074 1076
       boolean flag = false;

Also available in: Unified diff