Project

General

Profile

« Previous | Next » 

Revision 1096

Added by Jing Tao about 22 years ago

Add debugMessage level in this class

View differences:

src/edu/ucsb/nceas/metacat/DBQuery.java
255 255
          Vector returndocVec = qspec.getReturnDocList();
256 256
          if (returndocVec.size() != 0 && !returndocVec.contains(doctype))
257 257
          { 
258
            MetaCatUtil.debugMessage("Back tracing now...");
258
            MetaCatUtil.debugMessage("Back tracing now...", 50);
259 259
            String sep = util.getOption("accNumSeparator");
260 260
            StringBuffer btBuf = new StringBuffer();
261 261
            btBuf.append("select docid from xml_relation where ");
......
286 286
            { //there was a backtrackable document found
287 287
              DocumentImpl xmldoc = null;
288 288
              String packageDocid = btrs.getString(1);
289
              util.debugMessage("Getting document for docid: " + packageDocid);
289
              util.debugMessage("Getting document for docid: "+packageDocid,40);
290 290
              try
291 291
              {
292 292
                //  THIS CONSTRUCTOR BUILDS THE WHOLE XML doc not needed here
......
295 295
                //  xmldoc = new DocumentImpl(dbconn);
296 296
                xmldoc = new DocumentImpl(dbconn, packageDocid, false);
297 297
                if (xmldoc == null) {
298
                  util.debugMessage("Document was null for: " + packageDocid);
298
                  util.debugMessage("Document was null for: "+packageDocid, 50);
299 299
                }
300 300
              }
301 301
              catch(Exception e)
......
306 306
              
307 307
              String docid_org = xmldoc.getDocID();
308 308
              if (docid_org == null) {
309
                util.debugMessage("Docid_org was null.");
309
                util.debugMessage("Docid_org was null.", 40);
310 310
              }
311 311
              docid   = docid_org.trim();
312 312
              docname = xmldoc.getDocname();
......
838 838
    catch (SQLException e)
839 839
    {
840 840
      util.debugMessage("Error in getDocidListForDataPackage: "
841
                            +e.getMessage());
841
                            +e.getMessage(), 30);
842 842
    }//catch
843 843
    return docIdList;
844 844
  }//getCurrentDocidListForDataPackadge()
......
925 925
    catch (SQLException e)
926 926
    {
927 927
      util.debugMessage("Error in getDocidListForDataPackadge: "
928
                            +e.getMessage());
928
                            +e.getMessage(), 30);
929 929
    }
930 930
    return result;
931 931
  }//isDataPackageId()
......
978 978
    catch (SQLException e)
979 979
    {
980 980
      util.debugMessage("Error in getDocidListForDataPackadge: "
981
                            +e.getMessage());
981
                            +e.getMessage(), 30);
982 982
    }
983 983
    return rev;
984 984
  }//getCurrentRevFromXMLDoumentsTable
......
1122 1122
    }//try
1123 1123
    catch (IOException ioe)
1124 1124
    {
1125
      util.debugMessage("There is an exception: "+ioe.getMessage());
1125
      util.debugMessage("There is an exception: "+ioe.getMessage(), 30);
1126 1126
    }//catch
1127 1127
  }//addDataFileToZipOutputStream()
1128 1128

  
src/edu/ucsb/nceas/metacat/AccessControlList.java
1233 1233
    catch (Exception e)
1234 1234
    {
1235 1235
      MetaCatUtil.debugMessage("There is a exception in hasPermission method: "
1236
                         +e.getMessage());
1236
                         +e.getMessage(), 50);
1237 1237
    }
1238 1238
   
1239 1239
    return false;

Also available in: Unified diff