NIHVIVO-1286 - don't log error if miscAppReplacements.rdf file doesn't exist - just log an info.

This commit is contained in:
sjm222 2010-11-24 17:02:32 +00:00
parent e20e2af6c6
commit fed7a251d5

View file

@ -105,7 +105,7 @@ public class UpdateKnowledgeBase implements ServletContextListener {
doMiscAppMetadataReplacements(ctx.getRealPath(MISC_REPLACEMENTS_FILE), oms);
}
} catch (Throwable t){
log.error("Unable to perform miscellaneous application metadata replacements", t);
log.warn("Unable to perform miscellaneous application metadata replacements", t);
}
ontologyUpdater.update();
@ -166,6 +166,9 @@ public class UpdateKnowledgeBase implements ServletContextListener {
applicationMetadataModel.leaveCriticalSection();
}
}
} catch (FileNotFoundException fnfe) {
log.info("No miscellaneous application metadata replacements were performed.");
} catch (Exception e) {
log.error("Error performing miscellaneous application metadata " +
" replacements.", e);