Project

General

Profile

« Previous | Next » 

Revision 1496

Added by Jing Tao about 21 years ago

Change the debugMessage prototype.

View differences:

src/edu/ucsb/nceas/metacat/DBTransform.java
161 161
      } catch (Exception e) {
162 162
        util.debugMessage(xslSystemId + "Error transforming document in " +
163 163
                   "DBTransform.transformXMLDocument: " +
164
                   e.getMessage());
164
                   e.getMessage(), 30);
165 165
       
166 166
      }
167 167
    } else {
src/edu/ucsb/nceas/metacat/DBEntityResolver.java
91 91
  public InputSource resolveEntity (String publicId, String systemId)
92 92
                     throws SAXException
93 93
  {
94
    MetaCatUtil.debugMessage("in DBEntityResolver.resolveEntity, 50");
94
    MetaCatUtil.debugMessage("in DBEntityResolver.resolveEntity", 60);
95 95
    String dbSystemID;
96 96
    String doctype = null;
97 97

  
......
130 130
    // get System ID for doctype
131 131
    if (doctype != null) {
132 132
      // look at db XML Catalog for System ID
133
      MetaCatUtil.debugMessage("get systemId from doctype: "+doctype);
133
      MetaCatUtil.debugMessage("get systemId from doctype: "+doctype, 35);
134 134
      dbSystemID = getDTDSystemID(doctype);
135
      MetaCatUtil.debugMessage("The Systemid is: "+dbSystemID);
135
      MetaCatUtil.debugMessage("The Systemid is: "+dbSystemID, 35);
136 136
      boolean doctypeIsInDB = true;
137 137
      // no System ID found in db XML Catalog
138 138
      if (dbSystemID == null) {
......
142 142
          dbSystemID = systemId;
143 143
        }
144 144
        MetaCatUtil.debugMessage("If above Systemid is null and then get "
145
                                 +" system id from file" + dbSystemID);
145
                                 +" system id from file" + dbSystemID, 35);
146 146
      }
147 147
      // there are dtd text provided; try to upload on Metacat
148 148
      if ( dtdtext != null ) {
......
175 175
      return is;
176 176
    } else {
177 177
      // use provided systemId for the other cases
178
      MetaCatUtil.debugMessage("doctype is null and using system id from file");
178
      MetaCatUtil.debugMessage("doctype is null and using system id from file", 50);
179 179
      InputStream istream = checkURLConnection(systemId);
180 180
      return null;
181 181

  
src/edu/ucsb/nceas/metacat/ReplicationServerList.java
178 178
      catch (SQLException sqlE)
179 179
      {
180 180
        MetaCatUtil.debugMessage("Error in ReplicationHandler.buildServerList: "
181
                                +sqlE.getMessage());
181
                                +sqlE.getMessage(), 30);
182 182
      }//catch
183 183
      finally
184 184
      {

Also available in: Unified diff