Revision 3078
Added by Matt Jones over 17 years ago
MetaCatServlet.java | ||
---|---|---|
142 | 142 |
{ |
143 | 143 |
try { |
144 | 144 |
super.init(config); |
145 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
|
146 |
|
|
145 | 147 |
ServletContext context = config.getServletContext(); |
146 | 148 |
|
147 | 149 |
// Initialize the properties file for our options |
... | ... | |
154 | 156 |
Options options = null; |
155 | 157 |
try { |
156 | 158 |
options = Options.initialize(propertyFile); |
157 |
MetaCatUtil.printMessage("Options configured: "
|
|
158 |
+ options.getOption("configured"));
|
|
159 |
logMetacat.info("Options configured: "
|
|
160 |
+ options.getOption("configured")); |
|
159 | 161 |
} catch (IOException ioe) { |
160 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
|
161 | 162 |
logMetacat.error("Error in loading options: " |
162 | 163 |
+ ioe.getMessage()); |
163 | 164 |
} |
... | ... | |
197 | 198 |
skinOption.load(fis); |
198 | 199 |
fis.close(); |
199 | 200 |
} catch (IOException ioe) { |
200 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
|
201 | 201 |
logMetacat.error("Error in loading options for skin " + "skinName" +" : " |
202 | 202 |
+ ioe.getMessage()); |
203 | 203 |
} |
... | ... | |
226 | 226 |
|
227 | 227 |
// End timer |
228 | 228 |
long after = System.currentTimeMillis(); |
229 |
MetaCatUtil.printMessage(" ------ Spatial Harvester Time " + (after - before) + "ms");
|
|
229 |
logMetacat.info(" ------ Spatial Harvester Time " + (after - before) + "ms");
|
|
230 | 230 |
|
231 | 231 |
} else { |
232 |
MetaCatUtil.printMessage(" \n **** Spatial cache is not set to regenerate on restart");
|
|
232 |
logMetacat.info(" \n **** Spatial cache is not set to regenerate on restart");
|
|
233 | 233 |
} |
234 | 234 |
|
235 | 235 |
|
236 |
MetaCatUtil.printMessage("Metacat (" + Version.getVersion()
|
|
236 |
logMetacat.info("Metacat (" + Version.getVersion()
|
|
237 | 237 |
+ ") initialized."); |
238 | 238 |
|
239 | 239 |
} catch (ServletException ex) { |
... | ... | |
285 | 285 |
|
286 | 286 |
if (MetaCatUtil.pathsForIndexing != null) { |
287 | 287 |
|
288 |
MetaCatUtil.printMessage("Indexing paths specified in metacat.properties....");
|
|
288 |
logMetacat.debug("Indexing paths specified in metacat.properties....");
|
|
289 | 289 |
|
290 | 290 |
DBConnection conn = null; |
291 | 291 |
int serialNumber = -1; |
... | ... | |
409 | 409 |
|
410 | 410 |
} |
411 | 411 |
|
412 |
MetaCatUtil.printMessage("Path Indexing Completed");
|
|
412 |
logMetacat.debug("Path Indexing Completed");
|
|
413 | 413 |
} |
414 | 414 |
} |
415 | 415 |
|
Also available in: Unified diff
Eliminated the MetacatUtil.printMessage() method in favor of using the Log4J debugging methods.