Project

General

Profile

« Previous | Next » 

Revision 4664

Added by daigle over 15 years ago

add debug

View differences:

XMLSchemaService.java
193 193
					.getDBConnection("XMLService.populateRegisteredSchemaList");
194 194
			serialNumber = conn.getCheckOutSerialNumber();
195 195
			pstmt = conn.prepareStatement(sql);
196
			logMetacat.debug("Selecting schemas: " + pstmt.toString());
196 197
			pstmt.execute();
197 198
			resultSet = pstmt.getResultSet();
198 199

  
199 200
			// make sure the schema actually exists on the file system. If so,
200
			// add it
201
			// to the registered schema list.
201
			// add it to the registered schema list.
202 202
			while (resultSet.next()) {
203 203
				String fileNamespace = resultSet.getString(1);
204 204
				String fileLocation = resultSet.getString(2);
205
				logMetacat.debug("Registering schema: " + fileNamespace + " " + fileLocation);
205 206
				XMLSchema xmlSchema = new XMLSchema(fileNamespace);
206 207
				xmlSchema.setFileName(fileLocation);
207 208

  
208 209
				if (FileUtil.getFileStatus(xmlSchema.getLocalFileDir()) >= FileUtil.EXISTS_READABLE) {
209 210
					registeredSchemaList.add(xmlSchema);
210 211
				} else {
211
					logMetacat.warn("Schema file: " + fileLocation + " is registered "
212
					logMetacat.warn("Schema file: " + xmlSchema.getLocalFileDir() + " is registered "
212 213
							+ " in the database but does not exist on the file system.");
213 214
				}
214 215
			}

Also available in: Unified diff